Skip to content

Transforms graphql document to graphql abstract syntax tree

License

Notifications You must be signed in to change notification settings

kroekle/gql-to-ast

Repository files navigation

gql-to-ast

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.

Prerequisites

  • nodejs (test with v17.4.0 but should work on much older versions)
  • docker (if you want to build a local docker image)

Running locally

node index.js

Testing with CuRL

curl localhost:3333 -H 'content-type:application/json' -d '{"query": "{hero {name}}"}'

Building docker image

docker build -t gql-to-ast .

Running docker image

docker run -d -p3333:3333 gql-to-ast

About

Transforms graphql document to graphql abstract syntax tree

Resources

License

Stars

Watchers

Forks

Packages