Featured

Moving the Astro + Sanity Starter to GROQ



Published
I go through upgrading the Astro + Sanity Minimal starter to use the GROQ query language and Sanity's client package. Also, I show how to use the blog post categories with GROQ and GraphQL.

▬▬▬▬▬▬▬▬▬▬ Time Stamps

00:00 - Intro
00:44 - GROQ Overview and Resources
02:28 - Setup @sanity/client
04:25 - Swapping out GraphQL with GROQ
07:53 - Testing GROQ Queries
09:30 - Fixing our Blog Posts
11:00 - Blog Post Categories w/ GraphQL
12:08 - Blog Post Categories w/ GROQ
17:45 - How to view GraphQL version

▬▬▬▬▬▬▬▬▬▬ Assets & Source Code

Source Code: https://github.com/jaydanurwin/astro-sanity-minimal-starter

GROQ Docs: https://www.sanity.io/docs/groq

GraphQL branch: https://github.com/jaydanurwin/astro-sanity-minimal-starter/tree/graphql

▬▬▬▬▬▬▬▬▬▬ My Gear
Category
Web design
Be the first to comment