Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Jumpstart Jamstack Development

You're reading from   Jumpstart Jamstack Development Build and deploy modern websites and web apps using Gatsby, Netlify, and Sanity

Arrow left icon
Product type Paperback
Published in May 2021
Publisher Packt
ISBN-13 9781800203495
Length 252 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Christopher Pecoraro Christopher Pecoraro
Author Profile Icon Christopher Pecoraro
Christopher Pecoraro
Vincenzo Gambino Vincenzo Gambino
Author Profile Icon Vincenzo Gambino
Vincenzo Gambino
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Preface 1. Chapter 1: History of the Jamstack 2. Chapter 2: Introduction to Sanity FREE CHAPTER 3. Chapter 3: Exploring Sanity Studio 4. Chapter 4: Sanity Configuration and Schemas 5. Chapter 5: Sanity's GROQ Language 6. Chapter 6: Sanity's GraphQL Playground 7. Chapter 7: Gatsby – An Introduction 8. Chapter 8: Gatsby and GraphQL 9. Chapter 9: Gatsby Source Plugins 10. Chapter 10: Building Gatsby Components 11. Chapter 11: APIs – Extending Gatsby 12. Chapter 12: APIs – Alexa Skills 13. Chapter 13: Tying It All Together 14. Chapter 14: Deployment Using Netlify and Azure 15. Chapter 15: Conclusion 16. Other Books You May Enjoy

GraphQL playground basics

In Chapter 5, SSanity's GROQ Language, in the Installing Vision section, Sanity's Vision tool was used to test the GROQ queries. Likewise, Sanity uses the GraphQL playground so that we can test GraphQL and interact with its datasets.

The GraphQL playground allows users to create and run GraphQL queries that can later be used to obtain information from a GraphQL API. In the following section, we will learn about its basic functionality.

The following is a screenshot of the GraphQL playground:

Figure 6.1 – The GraphQL playground

The GraphQL playground's interface is easy to use. Similar to the Vision GROQ tool, the queries are typed into the left-side window and are executed by clicking on the play icon in the middle of the interface.

As expected, the GraphQL results are displayed in the right window. Query variables may be entered into a bottom window.

On the right, there is a green-colored tab, labeled...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime