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
Is there a way to get the key in an array when resolving the references?7Sep 10, 2020
Filter query results by reference property in array4Sep 7, 2020
How to Create a Download URL For Files11Sep 5, 2020
How to mutate an array field in Sanity document?27Sep 4, 2020
How to add image by URL when creating document with Sanity client?11Aug 17, 2020
How to preview content inside a reference array in Sanity.io4Aug 14, 2020
Array of References as Field of an Object - How to Preview the Content Inside the Reference3Aug 14, 2020
How to Set the Value of a Read Only String Field in a Document Based on Other Fields?21Aug 14, 2020
How to reference nested objects with slugs in Sanity Table of Contents?10Aug 7, 2020
URL field validation error in block: "Validator for flag 'uri' not found7Aug 6, 2020
How to reference and display objects from a certain field in Sanity.io11Aug 3, 2020
Sanity GraphQL: Duplicate type name error with reference and inline types3Jul 30, 2020
How to get image URL from asset reference in Sanity?27Jul 21, 2020
How to get image URL from Sanity image asset reference?27Jul 21, 2020
Configure inline images in Portable Text with predefined alt text and caption32Jul 14, 2020
How to use select() with references to multiple document types in GROQ?5Jul 14, 2020
Filter array to exclude already referenced sections in Sanity document27Jun 8, 2020
How to resolve references in PortableText array using GROQ?10Jun 5, 2020