Demo replicating an issue with usage of GraphQL Voyager on a static HTML page, using an existing SDL input string rather than creating an introspection query.
View the demo running at https://turnabout.github.io/graphql-voyager-sdl-static-html-demo/
View issue "How to use a schema instead of an introspection query in index.html?" on GraphQL Voyager's GitHub repository for more details.
Requires Docker and Make.
make serve
If you make changes to graphql.js
, you'll need to run:
make set-up # (Install Node.js dependencies)
make browserify # (Generate `graphql.bundle.js`)
to re-generate graphql.bundle.js
(which is the file used by index.html
).