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
Schema Specification for a Document - Is There a Way to Specify That Field To Be Unique?7Jul 13, 2020
GROQ: Resolve all references without declaring fields explicitly?19Jun 25, 2020
How to get unique values in a GROQ query?17Jun 9, 2020
Filter array to exclude already referenced sections in Sanity document27Jun 8, 2020
How to resolve references in PortableText array using GROQ?10Jun 5, 2020
BrowserslistError: Unknown browser query `dead` in Angular with Sanity4May 31, 2020
How to display the parent's label in the preview of a subcategory in Sanity.io14May 28, 2020
Sanity preview: draft revisions inconsistent and sometimes unavailable2May 19, 2020
Query by slug returns 200 instead of 404 when document not found2May 16, 2020
Discussion about issues with querying the "contacts" field in a Sanity.io document.36May 15, 2020
Update sort order via params in client query6May 12, 2020
Query issue with returning a specific collection in a Sanity.io Slack thread.5May 11, 2020
Gatsby GraphQL Error - Cannot query field “allProject” on type “Query”4May 10, 2020
How to apply custom ordering to documents in Sanity?78May 10, 2020
Grouping documents by published date in Sanity desk tool plugin6May 9, 2020
Issue with loading attached image after creating a new document in Sanity Studio via the sanity-plugin-intl-input package...6May 6, 2020
Drag and drop ordering of content in Sanity.io discussed, with suggestions for implementation.7Apr 30, 2020
How to Make Referenced Objects Inlined in a Query22Apr 28, 2020