A GraphQL demo built in Node.js with Express.
- Clone the repo locally
- Run
npm i
- Run
npm run start - Try some cURL calls:
curl --request POST \
--url http://localhost:4000/graphql \
--header 'Content-Type: application/json' \
--data '{"query":"query students {students {id, name}}","operationName":"students"}'curl --request POST \
--url http://localhost:4000/graphql \
--header 'Content-Type: application/json' \
--data '{"query":"mutation Mutation {\n createStudent(name: \"Eve\") {\n id\n name\n }\n}","operationName":"Mutation"}'