See Sanity in action 👀 Join us for a live product demo + Q&A →

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
Rendering nested block content3Jan 18, 2021
GraphQL query resolving references on a _raw field in Gatsby3May 17, 2022
Hi, I need help with Iframe preview, I have a `route` schema with unique `slug` (`/lb/123`) and also I have `page` schema...10Dec 21, 2020
Hi! How to add a doc via sanity client that has a *weak* reference? If I do this, it throws an error `key "weak" not allowed...2Feb 2, 2021
How come images are returning with just a _ref in their assets?10Feb 3, 2021
I'm still trying to work out how to write a subquery that pulls in references that are based on the parent query. My original...5Jan 5, 2021
is it possible to filter child elements in a query? e.g. in the query below I’d like to return only documents where `deleted...9Jan 4, 2021
If I have a document type A which contains a reference to document type B, when I query type B can I get a list of all A...2Oct 19, 2020
I’m having some trouble figuring out how to query inside references still.10Jan 14, 2021
Is it possible to have a `type: array`, of more than one entry for `type: reference` ? I kept getting an error that pointed...13Dec 31, 2020
Anyone who could help me out with sanity/mux?6Nov 3, 2020
Is there a way to query documents that aren’t referenced by another type of document?7Nov 23, 2020
Is there an easy way to get the reference data in a deeply nested component? I have a list of different components, some...4Jan 6, 2021
Hi again, I'm currently working on my blog and realized that the text blocks aren't rendering properly in block-content-to-react....9Feb 1, 2021
Validation Rule - Only allow one member in an array.2Feb 26, 2021
API CDN - Over 1 Million API Calls in 48 Hours2Feb 24, 2021
Validation Error: Validator for flag "uri" not found for type "Object"`7Aug 6, 2020
Using Accents in GROQ Queries and Matching to Documents11Sep 13, 2021