How to use the apollo-server-hapi.graphiqlHapi function in apollo-server-hapi

To help you get started, we’ve selected a few apollo-server-hapi examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Codebrahma / gamification-platform-backend / plugins.js View on Github external
plugins.push({
		plugin: appoloServer.graphqlHapi,
		options: {
			path: '/graphql',
			graphqlOptions: {
				schema: executableSchema,
			},
			route: {
				cors: true,
			},
		},
	});

	// graphiql interface
	plugins.push({
		plugin: appoloServer.graphiqlHapi,
		options: {
			path: '/graphiql',
			graphiqlOptions: {
				schema: executableSchema,
				endpointURL: '/graphql',
			},
		},
	});
}

module.exports = plugins;

apollo-server-hapi

Production-ready Node.js GraphQL server for Hapi

MIT
Latest version published 9 months ago

Package Health Score

82 / 100
Full package analysis