@seangenabe/fastify-apollo-2
v1.1.5
Published
Fastify and Apollo Server integration
Downloads
6
Readme
fastify-apollo-2
A new take on Fastify and Apollo Server integration. Based on the official hapi plugin.
Usage
// Register GraphQL endpoint
fastify.register(require('@seangenabe/fastify-apollo-2'), {
graphqlOptions: { schema },
prefix: '/graphql'
})
// Registry GraphiQL endpoint
fastify.register(require('@seangenabe/fastify-apollo-2/graphiql', {
graphiqlOptions: { endpointURL: '/graphql' },
prefix: '/graphiql'
})
Reference: