Transforms graphql document to graphql abstract syntax tree.
The service runs by default on port 3333 and at the root. The body should be a json document with a query property. It does no schema validation on the GraphQL document.
- nodejs (test with v17.4.0 but should work on much older versions)
- docker (if you want to build a local docker image)
node index.js
curl localhost:3333 -H 'content-type:application/json' -d '{"query": "{hero {name}}"}'
docker build -t gql-to-ast .
docker run -d -p3333:3333 gql-to-ast