This project was bootstrapped with Create React App.
The fake graphQL server is build by json-graphql-server
.
- start server on port 4000
json-graphql-server graph/graph-server.json --p 4000
- check commands on http://localhost:4000, which is a GraphiQL GUI.
When we put data in graph/graph-server.json
, default resolvers are created by the package automatically.
For example, if we have type Todo
, following are the resolvers provided by package.
- query:
Todo
,allTodo
- mutation (all columns are required):
createTodo
,createManyTodo
,updateTodo
,removeTodo
For more details, check GitHub repo of json-graphql-server
package.