Join our next Developer Virtual Meetup – Live Q&A, Project Showcase, Swag raffle, and more 🔥

Answers from the community about Reference

Some of the conversations between community members on questions, suggestions and tips for using Sanity. Join our Slack to be a part of it.

TopicCategoriesFeaturedRepliesLast Updated
Error: unable to resolve image URL from source (undefined)14Sep 11, 2022
GraphQL query resolving references on a _raw field in Gatsby3May 17, 2022
Rendering nested block content3Jan 18, 2021
How to reference a schema from a schema in Sanity.io3Feb 3, 2024
Is it possible to set a weak reference through a mutation in Sanity.io?3Feb 2, 2024
Querying only desktop sections directly in the groq query for a responsive header setup.3Jan 24, 2024
How to create a new document and set a reference in an array using the JavaScript API.4Jan 9, 2024
Understanding the use of '@' in groq for reading fields outside of the reference context.5Nov 9, 2023
Issue with cache not reflecting changes in response of query in Next.js and Sanity v3.5Sep 29, 2023
How to reference a field in a Groq query in another part of the query without using a variable passed.7Sep 21, 2023
How to prevent self-reference in child-parent setup in Sanity using custom validation or filter option.5Sep 7, 2023
How to retrieve specific values from a document reference in GROQ query.6Aug 1, 2023
Querying objects with specific references in a Slack thread.3Jul 13, 2023
Trouble adding reference to array causing crashes in Sanity UI7Jun 23, 2023
Understanding how to create inline documents with reference fields in Slack thread5Jun 19, 2023
Issues with array field and reference type in navMenu schema9Jun 11, 2023
Understanding the differences between Groq and GraphQL in Sanity.io5May 27, 2023
Querying for documents by reference in a post and tag schema4May 22, 2023