GraphQL playground is an graphql IDE that allows you to interact with your live graphql service. Using playground you can:
Explore the documentation
Explore the schema
Create typesafe queries. This can be useful for creating your integration test request payloads.
Perform real graphql queries over subscription and http.
Pre-load common graphql queries into tabs
Add authorization headers to your graphql queries
graphql variables, this can be useful to avoid manually manipulating the graphql query input parameters
Once you add playground-spring-boot-starter to the classpath, GraphQL Playground becomes accessible at root /playground. It uses an embedded GraphQL Playground React. GraphQL playground can be disabled by setting the property graphql.playground.enabled: false
Here I demonstrate how I like to pre-load common graphql queries, headers and variables into playground tabs. This really speeds up development by removing the need to save common queries locally, configure them and it allows you share queries across your team.
See you in the next episode where I demo Voyager
Cheers!
Philip
GraphQL Playground: https://github.com/prisma-labs/graphq...
Spring Boot GraphQL: https://github.com/graphql-java-kicks...
Enable Spring Boot GraphQL Playground: https://github.com/graphql-java-kicks...