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
How to dereference array of testimonial references in GROQ query?2Jul 21, 2021
How to expand nested references while keeping sibling items in array?4Jul 20, 2021
"Troubleshooting adding Sanity to a Gatsby project and resolving deployment and configuration issues."13Jul 19, 2021
Filter Sanity products by field values (checkbox/array) not documents5Jul 18, 2021
Category page 404 error when copying post slug logic in Sanity + Next.js4Jul 18, 2021
How to display custom titles for array objects in Sanity?6Jul 16, 2021
Fetch multiple Sanity content types in Next.js getStaticProps2Jul 13, 2021
Schema changes not reflecting in output despite showing in Studio9Jul 7, 2021
How to auto-publish documents created via Sanity client in Node.js?11Jul 6, 2021
Show published/unpublished status icon in Sanity document list15Jul 6, 2021
Troubleshooting Next.js and Sanity integration, with issues outputting data13Jul 2, 2021
Why does array.map() return undefined when array exists in console.log?12Jul 1, 2021
How to get title field from reference in Sanity preview?70Jul 1, 2021
GROQ: Flatten nested array and extract specific property (usedTime) from tasks11Jun 29, 2021
GROQ: Filter posts by category when categories is an array field7Jun 29, 2021
Migrating Data and Export/Import to Remake Schemas9Jun 28, 2021
How to auto-generate slug from title field in Sanity productVariant schema?8Jun 27, 2021
Output referenced person image as background in Next.js from Sanity query5Jun 25, 2021