Skip to main content
CMSquestions

Groq-query-language

IntermediateQuick Answer

Key Takeaways

  • GROQ is an open-source query language for JSON documents, created by Sanity
  • It combines filtering, projection, and joining in a single concise expression
  • No schema definition required—query any JSON structure directly
  • The dereference operator (`->`) follows references between documents automatically
  • GROQ is used natively in Sanity but can be used with any JSON data via the open-source spec