GraphQL + Dang playground

Meta: the live payoff of GraphQL interop — "schema-as-stdlib" against a real API the reader already has an account on. Keep it concrete: sign in, run, see your own data. Don't re-teach selection syntax (that's GraphQL interop); show it working. Honesty: the only thing not client-side is the OAuth token exchange, and the token stays in the tab. Say that plainly, don't oversell.

Every other playground in these docs runs the standard library alone. This one wires in a live GraphQL schema: sign in with GitHub and import GitHub brings GitHub's real types and root fields into scope, queried straight from your browser.

Sign in, then run

Hit Sign in with GitHub in the toolbar below and authorize the app. You come back to this page signed in; now run the snippet.

import GitHub

# `viewer` is GitHub's root field for the authenticated user. The selection
# desugars to one GraphQL query — see the GraphQL interop page.
viewer.{
  login
  name
  repositories(first: 3).{ nodes.{ name, stargazerCount } }
}

What's actually happening