Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 696 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 696 Bytes

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