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
GROQ: Prevent null values when resolving optional array keys22Nov 14, 2022
Vercel Build Failure: Cannot read properties of undefined (reading 'title')8Nov 13, 2022
Sanity query returning 4 different post IDs instead of selected post50Nov 9, 2022
How to access image asset properties (url, metadata) in Sanity GROQ query?12Nov 3, 2022
GROQ query with nested count and references returns empty in Nuxt Sanity Module7Oct 28, 2022
Following reference fields in nested arrays with GROQ projection14Oct 26, 2022
GROQ: Query articles grouped by tags from list component in single query6Oct 24, 2022
How to query single object by ID without array response in Sanity?11Oct 18, 2022
Tags Plugin Error: Module parse failed in floating-ui.dom.esm.js8Oct 14, 2022
Dynamic nested route with slug queries returning empty array in Next.js3Oct 4, 2022
Multiple Shopify Stores for Multiple Currencies - How to Grab the Store URL from a Query14Oct 3, 2022
How to Change a Post's Position in the Object of Posts6Oct 3, 2022
Querying and hooking up a navigation schema to a front end in Sanity.io8Sep 29, 2022
GROQ dateTime() function with Date type returning null4Sep 29, 2022
How to reference nested array objects in Sanity schema?28Sep 29, 2022
How to filter Sanity array to return single object by ID, not empty objects3Sep 26, 2022
Sanity items displaying in wrong order on website16Sep 24, 2022
TypeError: sanityConfig.fetch is not a function - Next.js Sanity setup3Sep 23, 2022