Answers from the community about GROQ

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

TopicCategoriesFeaturedRepliesLast Updated
GROQ query with boolean field works in Vision but returns empty in app13Apr 7, 2022
How to filter Sanity documents by referenced array item properties?21Apr 7, 2022
How to rename Sanity schemas without losing content in Studio?7Apr 7, 2022
How to send email notifications on new Sanity documents using webhooks?43Apr 5, 2022
How to Calculate the Reading Time of Body Content with React18Apr 5, 2022
Fetching multiple document types with conditional fields in Sanity GROQ query8Apr 2, 2022
How to unset an array element using patch query in Sanity?9Apr 2, 2022
Sanity API versions not returning key except v136Mar 31, 2022
Adding singleton references to CTA object in Sanity5Mar 28, 2022
Query Sanity documents by matching IDs from user's array8Mar 23, 2022
Filter null/empty entries in GROQ array subquery for page builder schema6Mar 19, 2022
Help with GROQ query and filtering array in Slack thread18Mar 16, 2022
Accessing nested array objects from GROQ query with conditional fallback25Mar 15, 2022
Image upload fails after adding metadata options for dimensions and image4Mar 11, 2022
How to limit results per type in Sanity query with multiple document types?6Mar 10, 2022
How to validate that a document is referenced by at least one other document?26Mar 9, 2022
Why is my GROQ query not filtering out draft articles?20Mar 8, 2022
How to get alt text from Sanity Media Plugin using GROQ?13Mar 8, 2022