Building an API with GraphQL
Why design an API from the ground up with GraphQL? Why not use JSON:API? Watch the video to find out, with a live demo of the Mentally Healthy Workplaces platform.
by
adam.bramley
/ 22 June 2023
While JSON:API is a powerful out-of-the-box tool, it’s also broad and largely undefined. GraphQL might require more backend development upfront, but it’s easier to read and understand, paying dividends later.
In the video, I demonstrate a use case for GraphQL from our recent project, the Mentally Healthy Workplaces platform. This feature enables anonymous users to create accounts, save resources to their collections and share those with the public.
I also take you through:
- Kickstarting your GraphQL with Schema and Extensions
- Writing your own Data Producers
- How to write secure Mutations to Create, Update, and Delete content on your site
- A live demo of how this is integrated into React apps
Suggested reading: I highly recommend you check out the GraphQL Gitbook when you’re starting out.
Watch the video
Presented at DrupalSouth 2023 in Wellington.