GraphQL server is a flexible, community driven, production-ready HTTP GraphQL server plugin for Node.js.
This server can be queried from any popular GraphQL client, such as Apollo or Relay because it supports all of the common semantics for sending GraphQL over HTTP, as documented on graphql.org. GraphQL Server also supports some small extensions to the protocol, such as sending multiple GraphQL operations in one request. Read more on the sending requests page.
Install it with:
# Pick the one that matches your server framework
The following features distinguish GraphQL Server from express-graphql, Facebook’s reference HTTP server implementation:
- GraphQL Server has a simpler interface and allows fewer ways of sending queries, which makes it a bit easier to reason about what’s going on.
- GraphQL Server serves GraphiQL on a separate route, giving you more flexibility to decide when and how to serve it.
- GraphQL Server supports query batching which can help reduce load on your server.
- GraphQL Server has built-in support for persisted queries, which can make your app faster and your server more secure.