Query Language (GROQ)
GROQ is Sanity's open-source query language. It's a powerful and intuitive language that's easy to learn. With GROQ you can describe exactly what information your application needs, join information from several sets of documents, and stitch together a very specific response with only the exact fields you need.
GROQ Reference Documentation
The GROQ reference documentation contains the details specifications of the query language.