Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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;