Skip to content
Branch: master
Find file History
glasser Make some tests run properly (#2432)
- apollo-server-azure-functions: a test was failing (expectedResult needed to
  have {data:} and be converted to string) but it was happening in an unhandled
  promise. Restructure test to fail, then fix the test.

- apollo-server-fastify: after the upgrade in #2418, Jest started warning that
  async describe blocks were bad. Fix that.
Latest commit 9d39f2c Mar 13, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Make some tests run properly (#2432) Mar 12, 2019
jest.config.js feat(fastify) Apollo Fastify server integration resolve #626 Jan 2, 2019
package.json Publish Feb 26, 2019

title description
Setting up Apollo Server with Fastify

npm version Build Status Join the community on Spectrum

This is the Fastify integration of GraphQL Server. Apollo Server is a community-maintained open-source GraphQL server that works with many Node.js HTTP server frameworks. Read the docs. Read the CHANGELOG.

npm install apollo-server-fastify


const { ApolloServer, gql } = require('apollo-server-fastify');
const { typeDefs, resolvers } = require('./module');

const server = new ApolloServer({

const app = require('fastify')();

(async function () {
  await app.listen(3000);


GraphQL Server is built with the following principles in mind:

  • By the community, for the community: GraphQL Server's development is driven by the needs of developers
  • Simplicity: by keeping things simple, GraphQL Server is easier to use, easier to contribute to, and more secure
  • Performance: GraphQL Server is well-tested and production-ready - no modifications needed

Anyone is welcome to contribute to GraphQL Server, just read, take a look at the roadmap and make your first PR!

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.