πŸ‘€ 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
Using a given parameter as a where condition in GROQ in Sanity.io3Dec 12, 2023
How to specify the dataset to query in GROQ for an app using Sanity.io.4Nov 28, 2023
Understanding the use of '@' in groq for reading fields outside of the reference context.5Nov 9, 2023
Is it possible to match values in arrays using a groq query in Sanity.io?3Oct 18, 2023
Applying custom functions directly in GROQ for data destructuring from datetime.6Oct 10, 2023
Using GROQ to fetch all items in a collection except the first one.3Oct 6, 2023
How to reference a field in a Groq query in another part of the query without using a variable passed.7Sep 21, 2023
Issue with basic groq query in Sanity not returning expected results.7Sep 19, 2023
How to conditionally add data to a groq-query if the array is empty4Sep 12, 2023
Quick and easy way to count images in GROQ arrays for article teasers.3Sep 7, 2023
How to concatenate strings in GROQ and handle null values using coalesce function.3Aug 15, 2023
Issue with GROQ-powered webhook and missing authentication token in API call8Aug 10, 2023
How to retrieve specific values from a document reference in GROQ query.6Aug 1, 2023
Help needed with fetching drafts from referenced documents using groq queries in Slack thread.4Jul 20, 2023
Querying mixed-fields arrays in GROQ for a complex schema.5Jun 20, 2023
Using GROQ to achieve shorthand string compare within array::join function2Jun 20, 2023
Using `match` in GROQ query to search for slugs starting with a specific path4Jun 14, 2023
Adjusting GROQ query to filter out current document based on tags.3Jun 12, 2023