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
Troubleshooting reference fields in a Next.js Landing page template14May 2, 2020
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 set a preview with a reference name in a document in Slack thread.29Apr 25, 2020
How to reference and display objects from a certain field in Sanity.io11Aug 3, 2020
Adding code formatting to the BlockContent field type using a plugin in Slack thread.24Jan 26, 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
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