Link to GraphQL documentation
GraphQL is a query language for your API, and a server-side runtime for executing queries by using a type system you define for your data. GraphQL isn't tied to any specific database or storage engine and is instead backed by your existing code and data.
Using a node.js server? Just use express-graphql! It can automatically present GraphiQL, if you using another GraphQL service? GraphiQL is relatively easy to set up. With npm:
This example uses GraphQL, Mongoose and JWT.
You can install the packages in two ways:
npm install
If you have errors, please install package by package it's not a lot, right? π
$ npm install --save express-graphql
$ npm install jsonwebtoken
$ npm install mongoose -save
-
GraphQL: β
- Mutation. β
- Queries. β
-
Connection database (Mongodb) with Mongoose β
-
Implementation of the jsonwebtoken
-
Implementation of the Jest Framework for tests ( Watch the presentation about Jest Framework by Sibelius Seraphini)
-
Subscriptions π―
in development...