Watch a live product demo 👀 See how Sanity powers richer commerce experiences

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
Extracting referenced images from an object array in Sanity.io4May 17, 2020
How to preview content inside a reference array in Sanity.io4Aug 14, 2020
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
Query for finding un-referenced documents in Sanity.io11May 10, 2020
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
Filtering a reference list with dynamic filter in Sanity.io14Jan 28, 2021
How to reference and display objects from a certain field in Sanity.io11Aug 3, 2020
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
Querying a reference field in Sanity and resolving initial value in a document schema34Apr 25, 2020
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