An example project of express-graphql
- Install node modules
yarn install
- Run graphql server
node index.js
- Fetch graphql example data
curl -X POST \
-H "Content-Type: application/json" \
-d '{"query": "{ hello }"}' \
http://localhost:4000/graphql
# output:
{"data":{"hello":"Hello World"}}