fastify-graphql
A plugin for Fastify that adds GraphQL and GraphiQL support.
This project was forked from fastify-apollo as it is no longer being maintained fast enough to keep pace with the rapid changes happening in the GraphQL ecosystem.
Installation
npm install --save fastify-graphql graphql
or
yarn add fastify-graphql graphql
Usage
const Fastify = ;const app = ; const graphiqlFastify graphqlFastify = ;app;app;
Configuration
Both plugins need to be given a prefix, under which they will mount.
GraphQL settings extends GraphQLServerOptions
GraphiQL settings extends GraphiQLData