GraphQL
-
13 Dec 2021
An introduction to GraphQL and how to use GraphQL APIs
While it’s easy to start making your first query with GraphQL with very little research, I thought it would be useful to consolidate all I’ve learned throughout the year and provide a high-level introduction to GraphQL for anyone interested in getting started.
-
21 Oct 2021
TIL: How to use GraphQL variables to give my queries type safety
One of the things I love about GraphQL is how straightforward it is to get up and running with little to no experience. But how can you make sure your GraphQL queries are safe from nasties? Let’s find out.
-
10 Oct 2021
Next.js Dynamic Routes with Contentful's GraphQL API — with Jason Lengstorf
Next.js has a popular approach for generating dynamic routes. In this episode of Learn with Jason, I teach Jason how to use Contentful’s GraphQL API to power them!
-
14 Jun 2021
How to filter entries by linked references in GraphQL
Do you want to filter your blog posts by linked topics such as “javascript” or “tutorial” via GraphQL? Check out this quick guide that shows you how to get the data you need using the linkedFrom field in your query — it’s pretty nice!
-
22 Apr 2021
Paginating your Contentful blog posts in Next.js with the GraphQL API
In this post, we’re going to build a set of article list pages that display a number of blog post summaries per page — fetched from the Contentful GraphQL API at build time with Next.js.
-
13 Apr 2021
Exploring linked entries and assets in Contentful with JavaScript via REST and GraphQL
I set out to explore and investigate the inner workings of the Contentful REST API and GraphQL API in terms of linking assets and entries on a content type in order to understand how we can render links inside Contentful Rich Text fields.
-
5 Feb 2021
How to build a lightweight microblogging site with Contentful, vanilla HTML, CSS and JavaScript
Learn how to build a lightweight microblog with Contentful and vanilla HTML, CSS and JavaScript.