Answers from the community about Reference

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 access parent field from reference context using @ in GROQ?5Nov 9, 2023
Sanity cache not updating in Next.js 13 despite useCdn prop changes5Sep 29, 2023
Get _key field when dereferencing array of references in GROQ14Sep 26, 2023
Reference field value within same GROQ query without variables7Sep 21, 2023
How to prevent self-reference in parent-child category relationships?5Sep 7, 2023
Query referenced tag title in GROQ array filter6Aug 1, 2023
Sanity array reference crashes with "Objects are not valid as a React child" error7Jun 23, 2023
Where do inline-created reference documents appear in Sanity Studio?5Jun 19, 2023
How to hide media/image in Sanity preview list?9Jun 11, 2023
Does GROQ Vision have schema documentation and autocomplete like GraphQL?5May 27, 2023
Query documents by reference array in Sanity (filtering posts by tags)4May 22, 2023
Fetching fresh data with useClient() matching document._updatedAt timestamp6Apr 25, 2023
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
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
Discussion on deleting a collection and resolving reference errors in Sanity.io18Oct 18, 2022
Tags Plugin Error: Module parse failed in floating-ui.dom.esm.js8Oct 14, 2022