layout | title | description | permalink |
---|---|---|---|
default |
GraphQL Playground |
A blog all about GraphQL Playground |
/stargate/graphql/playground/ |
{% include under_construction.html %}
Bundled within the docker stargate is an instance of GraphQL Playground. This UI provides an interface to execute GraphQL queries against Stargate & Astra APIs.
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.
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.
My first day working in the GraphQL Playground UI
tags: graphql, playground, export, tabs, testing, ui
{% include stargate_help.html %}