TracksMastering Content OperationsCoursesBetween GROQ and a hard placeYour new favourite query language
Between GROQ and a hard place
Markdown Version

Your new favourite query language

Why you'll learn (and love) GROQ in this course, and why not GraphQL?
Simeon Griggs
Simeon GriggsPrincipal Educator at Sanity
Log in to mark your progress for each Lesson and Task

Sanity provides two methods to query data: GROQ and GraphQL.

Compare GROQ and GraphQL in the documentation

You'll learn GROQ in this track as it is the preferred method for querying content from Sanity and powers other features like user role permissions and filters in functions.

See Roles for how GROQ is used to configure "Content resources"
See Functions quick start for how function invocations can be limited by a GROQ filter
  • You have a Sanity Studio with event, artist and venue type documents, just like you created in the Day One Content Operations course.
  • You won’t need to know any GROQ in advance to complete these exercises.

Here are some great resources already to learn and experiment more with GROQ:

Visual playground groq.dev
Free “Introduction to GROQ Query Language” course on Egghead.io
Mark lesson as complete
You have 1 uncompleted task in this lesson
0 of 1