What is GROQ?
mainGROQ (Graph-Relational Object Queries) is a declarative query language for collections of schema-less JSON documents. It is designed to achieve three primary goals:
- Expressive filtering: Selecting specific documents based on complex criteria.
- Joining: Combining information from multiple documents into a single response.
- Shaping: Structuring the output response to match the exact requirements of a client application, ensuring only necessary fields are returned.