πŸ‘€ Our most exciting product launch yet πŸš€ Join us May 8th for Sanity Connect

Answers from the community about GROQ

Some of the conversations between community members on questions, suggestions and tips for using Sanity. Join our Slack to be a part of it.

TopicCategoriesFeaturedRepliesLast Updated
How to apply different schema based on type in a GROQ query for nested references4Jun 9, 2023
Beginner seeks help with GROQ query for getting title of availability in Sanity schema.2Jun 6, 2023
How to filter a GROQ query based on the presence of a specific field in the schema.9Jun 1, 2023
Sorting null values in descending order in Groq3May 30, 2023
Understanding the use of `^` and `@` operators in GROQ queries for accessing parent and current scopes.7May 29, 2023
Setting image size in GROQ query for Sanity.io4May 24, 2023
How to fetch an array of images using groq in Sanity.io6May 21, 2023
Sorting sub-array in descending order using Groq in Sanity.io.7Mar 14, 2023
Discussion of GROQ query optimization and potential for a "referencedBy" function11Mar 2, 2023
Handling potential null values when combining properties in API endpoint4Feb 23, 2023
How to structure content in Sanity.io & use GROQ queries for filtering & referencing related documents.21Feb 23, 2023
Issue with filtering documents using `match` query in Elasticsearch2Feb 19, 2023
Guidance on using GROQ to exclude already added documents in a sub-service array6Feb 17, 2023
Dealing with slow queries with multiple joins in data modeling4Feb 10, 2023
Syntax for Outputting an Array in GROQ6Feb 2, 2023
GROQ Query Error - Error: `String Literal Expected`2Jan 21, 2023
How to Order by a Nullable Datefield4Jan 17, 2023
How to use a Query to Access Data in Array4Jan 17, 2023