// TODO
Run the server locally
# install deps
$ yarn
# run dynamodb
$ ./shell-scripts/run-dynamodb.sh
# run graphql server on port 62222
$ yarn dev
# query graphql
$ curl -X POST \
http://localhost:62222/graphql \
-H 'Content-Type: application/json' \
-H 'x-api-key: it-does-not-matter-what-key-your-pass-but-its-required' \
-d '{
"query": "{ hello }"
}'
Install graphql-playground if you don't have.
$ brew cask install graphql-playground
Now just open the project root in graphql-playground
- add a handlerWrap for every handler
- should code be the HASH key in cinema & movies? or not? confusion