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
Using GROQ queries for live preview in Gatsby without knowing fields19Jun 25, 2020
Structuring a GROQ query to get unique values and creating a documentList in Sanity17Jun 9, 2020
How to Write a Filter Query27Jun 8, 2020
Is there a GROQ Query where References in a PortableText Array of Blocks Are Also Resolved?10Jun 5, 2020
Angular Error - BrowserslistError: Unknown Browser Query `Dead`4May 31, 2020
How to display the parent's label in the preview of a subcategory in Sanity.io14May 28, 2020
Previewing Drafts in the Studio - Is it Possible?2May 19, 2020
404 Status Code - Is there a Way to Change the Status Code?2May 16, 2020
Discussion about issues with querying the "contacts" field in a Sanity.io document.36May 15, 2020
Is it Possible to Update the Sort Value via Params in a Client Query?6May 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
Applying arbitrary order to documents in Sanity using reference fields and custom ID generation78May 10, 2020
How to Group Documents by Published Date with the 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