Database Schema

We have two web pages where you can try out GraphQL queries. Both of them use the same demo database.

The demo database has six tables. To keep things interesting, some of the tables have auto-incrementing ID’s, some have natural keys, and some have compound keys. The Seller table is self-referencing.

The Init Script has all the details, including the data that’s scripted in.

Note: The demo websites and database are hosted in Azure using the least expensive options possible. (The App Service is F1 (Free) and the database is Basic). Expect uneven performance.

GraphiQL

GraphiQL is an open source in-browser IDE for composing and testing GraphQL queries. When GraphiQL launches, it issues an introspection query to the GraphQL API, then helps you write queries by providing auto-complete.

Run: GraphiQL Demo App

Sample Queries

Sample Queries is a UI showing a wide assortment of sample queries. You can modify them or create one of your own. After a query is run, the page shows the resulting data, the T-SQL that was generated, and some runtime statistics.

Run: Sample Queries App