Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive

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
Comparing arrays in GROQ query to find intersections.5Feb 28, 2024
How to get only the published results on GROQ in Sanity.io.4Feb 12, 2024
GROQ queries and security in Sanity.io6Feb 7, 2024
Querying for image attributes and requesting image metadata in GROQ.9Jan 24, 2024
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