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

Answers from the community about Queries

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 write a query that filters articles by the value of a referenced document in Sanity.io10Feb 9, 2021
Understanding the usage of `...` in a Groq query and troubleshooting issues with querying data in Sanity.io16Feb 8, 2021
retrieve the values of sibling fields to use in rendering an inputComponent4Feb 7, 2021
I’ve been fighting for a few hours with a preview, and I figured I’d check in here. I am creating a grid container thathas...3Feb 1, 2021
Need help with creating a grid container preview in Slack thread.3Feb 1, 2021
Hi everyone, hope you can help me out. I have an issue working with Gatsby and Sanity. When querying for an array of references...18Feb 1, 2021
Querying for array of references in Gatsby and Sanity18Feb 1, 2021
I have an array of references to a country schema type but it always just returns NULL values for me11Jan 30, 2021
Querying array of references in Sanity schema and resolving null values11Jan 30, 2021
Create an Array With Two Types - Mixing Primitive Types23Jan 29, 2021
Uploading an image as an asset from a URL and using createIfNotExists and createOrReplace in the Sanity API.14Jan 27, 2021
Help with filtering posts by tag in GROQ and React13Jan 22, 2021
Hey! We're fetching responsive images from <http://cdn.sanity.io|cdn.sanity.io> using `@sanity/image-url` to generate query...2Jan 21, 2021
Error - Invalid Response from Upstream Server7Jan 19, 2021
Issue with authorization token in GROQ requests during Next.js build.12Jan 12, 2021
Hello! Is there any reason I would get different results between these two methods of querying data? ```curl <https://xuaf19yr.api.sanity.i...9Jan 12, 2021
How to Create a Sitemap when using Next.js10Jan 8, 2021
Am I right in thinking that it isn’t currently possible to query a random document, or X random documents, of a given type...14Jan 8, 2021