/justa-graph-api

Just a Graphql Api to test

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

Just a Graphql Api to test

docker-compose up mysql
docker-compose exec -it mysql mysql -u root -p

in tsconfig.js

{
  "compilerOptions": {
    "baseUrl": "./src"
  }
}

Misc Examples.

curl '0.0.0.0:8080/api/graphql' \
  -X POST \
  -H 'content-type: application/json' \
  --data '{
    "query": "{ users { code name } }"
  }'

# hello world example
curl -sX POST '0.0.0.0:8080/api/graphql' \
  -H 'content-type: application/json' \
  --data '{"query": "{ hello }"}' | jq