Answers from the community about Queries

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
Why does PortableText need dataset and projectId props if sanity.json exists?10Feb 18, 2022
Issues with `i18n_lang` field in Sanity document internationalization plugin15Feb 15, 2022
Migrating github.gist serializer from block-content-to-react to portabletext/react10Feb 10, 2022
How to query span text within block types using GROQ?25Feb 8, 2022
Batch patch commits to multiple documents via API20Feb 8, 2022
GROQ: Dereferencing nested image reference (reference in a reference)9Feb 7, 2022
Sanity GraphQL query syntax error: "expected '}' following object body" in dynamic queries19Feb 4, 2022
How to filter Sanity documents by published status excluding drafts4Feb 2, 2022
Resolving references in Sanity Studio using GROQ queries12Feb 2, 2022
GraphQL query `matches` filter returning unexpected partial text matches3Feb 1, 2022
Understanding regions/geopolygon for geopoint queries in Sanity4Feb 1, 2022
How to dereference a field in GROQ while keeping original structure?8Jan 28, 2022
Calendar plugin schedule button not showing despite adding document type18Jan 28, 2022
How to get parent document slugs in nested Sanity structure?7Jan 26, 2022
Array Splatting to Concatenate Queries in Sanity5Jan 25, 2022
How to get information from every element of an array in GROQ query?7Jan 22, 2022
Query all authors except current article's author14Jan 21, 2022
GROQ: Making query parameters optional for conditional filtering19Jan 19, 2022