How to use
yarn install
yarn start
How to test
Open the interactive explorer http://localhost:3000/graphiql
Execute some tests like that:
Especific user
{
user(id: 2) {
id
name
knowledge {
language
frameworks
}
}
}
All users
{
allUsers
totalUsers
}
Test with httpie
http POST http://localhost:3000/graphql query="{user(id:2){id,name,knowledge{language,frameworks}}}"
Stack
- Express - Minimalist web framework for node
- GraphQL - A query language for API
- GraphQL Tools - Some tools for GraphQL
- Apollo Server Express - GraphQL server for Express
- Body Parser - Node.js body parsing middleware
- Babel - JavaScript compiler.