GROQ, explained
GROQ stands for Graph-Relational Object Queries. It was created by Sanity to query structured content stored in its Content Lake.
A query filters documents, then picks and reshapes fields. For example: all posts in a category, newest first, with only the title, slug, summary and the author's name joined in.
Its strength is joins and projections. You can follow references, rename fields and compute values in the query, so the front end gets clean data.
Sanity also supports GraphQL, but most Sanity projects use GROQ because it is flexible and fits Sanity's data model closely.



