Skip to content

Demo replicating issue with using schema SDL as input to GraphQL Voyager in a static HTML page

Notifications You must be signed in to change notification settings

turnabout/graphql-voyager-sdl-static-html-demo

Repository files navigation

GraphQL Voyager + SDL input + Static HTML demo

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.

Running the demo locally

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).

About

Demo replicating issue with using schema SDL as input to GraphQL Voyager in a static HTML page

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages