✨Discover storytelling in the AI age with Pixar's Matthew Luhn at Sanity Connect, May 8th—register now

Query Language (GROQ) - Reference

GROQ (Graph-Relational Object Queries) is a declarative language designed to query collections of largely schema-less JSON documents. Its primary design goals are expressive filtering, joining of several documents into a single response, and shaping the response to fit the client application.

For an introduction to GROQ, please see the how-to. The rest of this chapter is a comprehensive technical reference of the GROQ language.