Use docker-compose
to build a GraphQL API and start a MongoDB container.
Note: Make sure to execute the below commands in the demo directory.
docker-compose up -d
curl -s 'http://localhost/' -X POST -H 'content-type: application/json' --data '{ "query": "{ teams { name members department } }" }' | jq
docker-compose down