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
How to hide unpublished documents in Sanity API response?4Sep 14, 2020
I'm having a issue with deploying graphql query something about top level schema error.12Sep 12, 2020
it looks like our problems are caused by editors publishing drafts after backend token has updated docs, and thus overwriting...21Sep 10, 2020
How to Set Aspect Ratios on Images?6Sep 7, 2020
Filter query results by reference property in array4Sep 7, 2020
How to Create a Download URL For Files11Sep 5, 2020
How to mutate an array field in Sanity document?27Sep 4, 2020
GROQ: Can I use a query result to dynamically set slice parameters?9Aug 28, 2020
Vision Plugin not returning draft for specific document type15Aug 20, 2020
Can GROQ query JSON strings stored in document fields?26Aug 19, 2020
Gatsby "Invalid string length" error with unknown document ID from Sanity3Aug 18, 2020
Gatsby site crashing with cryptic error, resolved by adjusting resolveReferences depth3Aug 18, 2020
How to Query a Type with an Array to Deref One Nested Type3Aug 14, 2020
How to Set the Value of a Read Only String Field in a Document Based on Other Fields?21Aug 14, 2020
Explaining self-referencing category array without category name field14Aug 8, 2020
Sanity SDK Network Error in Next.js Client-Side (componentDidMount)4Aug 7, 2020
Query posts with specific author in second position of multiple authors20Aug 1, 2020
Custom GROQ Request in Sanity Preview/Prepare Functions6Jul 25, 2020