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
Gatsby-source-sanity plugin not showing schema in GraphQL playground35May 21, 2021
Query returns no results in Google Script but works elsewhere32May 20, 2021
Using Sanity History API for Page Version Navigation18May 20, 2021
Vercel and Next.js Error - Session Does Not Match Project Host19May 18, 2021
GROQ Array Filter Syntax Breaking After API v1 Upgrade2May 16, 2021
Querying and expanding references in Sanity.io search queries12May 14, 2021
Why am I getting duplicate records in my Sanity query with projection?7May 7, 2021
Fetch all image references in GROQ without specifying each field12May 5, 2021
Query Returning Expected Results in Vision but not in Custom Validation11Apr 30, 2021
Best Way to Fetch Global Data with GROQ and Next.js12Apr 30, 2021
usePreviewSubscription returns null data on last call in catch-all route22Apr 29, 2021
GROQ query error: Unknown query parameter "slug.current" in client code12Apr 28, 2021
How to add multiple images side-by-side (2x1 grid) in Portable Text?22Apr 26, 2021
Reference dereferencing fails after order() in array projection13Apr 26, 2021
How to make documents with custom prefix private like draft documents6Apr 21, 2021
Filter documents by ID in Sanity Desk Structure9Apr 20, 2021
Handling nested arrays when programmatically creating documents in Sanity.io17Apr 20, 2021
Portable Text Lists Rendering as P Tags Instead of UL/LI Elements24Apr 20, 2021