Skip to content

seangenabe/fastify-apollo-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

Fastify and Apollo Server integration

Resources

License

Stars

Watchers

Forks

Packages

No packages published