GraphQL Playground

A blog all about GraphQL Playground


Follow me on GitHub

WARNING Blog building in-progress, come back again soon as updates are happening here.

What is GraphQl Playground?

Bundled within the docker stargate is an instance of GraphQL Playground. This UI provides an interface to execute GraphQL queries against Stargate & Astra APIs.

Why use GraphQL Playground?

This is a great tool to quickly get started testing GraphQL queries. It also comes with a great share feature allowing you to share your work with team members.

Working with GraphQL Playground

With Stargate Docker running you can access GraphQL Playground with the following Url:

http://localhost:8080/playground

Here are few things I learned:

  • Your changes in this UI will not persist so do not refresh the page. If you want to save your work, your only option is to use Share Option which creates a graphqbin.com version of your workspace.
  • Check out HTTP HEADERS (bottom right), you’ll need your auth token, and also notice the case change here from “X-Cassandra-Token” to “x-cassandra-token”. You will have to update this every tab.
  • When working on calls, check out the Copy Curl button. This will expose the exact curl call you are executing under the hood. I have used this extensively.
  • A new tab will not have your auth token prefilled nd you will need to adjust the url for your API endpoint.
  • Query variables do work.

GraphQL Playground Posts

 

My first day working in the GraphQL Playground UI

tags: graphql, playground, export, tabs, testing, ui

How can I help you with Stargate?

SRM

Find me over on the Stargate Discord to ask me any questions about Stargate. Also let’s chat if you have something kewl you did with Stargate and you want me to feature it in my blog. Look below or to the right for more ways to find me.