I coded a #graphql Playground, and you can too!
summary
Built a custom GraphQL playground inside Contentful using the new GraphQL playground components and the Contentful app framework, wiring a fetcher to SchemaContextProvider and ExecuteContextProvider so a one-click execute button runs queries and shows results in a ResponseEditor; QueryEditor provides autocomplete. The integrated Explorer plugin auto-generates queries and was patched to fix vertical scrolling in 15 minutes. Demo runs live: a blog-posts query returns titles immediately.
AI-written summary · about
chapters (10)
- 0:00Introduction and welcome
- 1:46Talk agenda overview
- 3:11Problems with existing GraphQL playgrounds
- 5:21GraphQL Playground solution inspiration
- 6:23Contentful app framework setup
- 8:49Implementation walkthrough
- 10:14Adding query and response editors
- 13:12Enhancing the playground features
- 15:40Customization and future plans
- 16:45Conclusion and resources
