Answers from the community about GROQ

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
Query documents by tag references with dynamic ordering in Sanity41Oct 11, 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
Cannot delete translation document due to self-reference from base document17Sep 22, 2022
Find documents referencing a specific schema as a block10Sep 20, 2022
Translated documents deleted after translation maintenance - how to restore?14Sep 19, 2022
Adding reference in block array - how to expand with GROQ?10Sep 15, 2022
Dataset import not reflecting in Sanity Studio after CLI deployment15Sep 14, 2022
How to sync user documents on studio load with custom desk structure?15Sep 13, 2022
How to pass non-slug string params from getStaticPaths to getStaticProps in Next.js?63Sep 8, 2022
Category name not showing from reference field in Sanity schema18Sep 8, 2022