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
Conditional field validation based on another field value in Sanity4Aug 26, 2021
Custom grid UI for multi-type reference array selection in Sanity Studio4Aug 25, 2021
How to reference Sanity Slack thread response10Aug 22, 2021
Should I use SKU field in documents or create separate SKU document type?6Aug 20, 2021
Reference fields not resolving in Portable Text serializer components15Aug 14, 2021
Add Table of Contents to Blog with Sanity and Next.js15Aug 12, 2021
GROQ query to filter blog posts by category slug19Aug 11, 2021
Can I access dereferenced fields from a doc reference in schema validation?3Aug 6, 2021
Sanity Studio: Invited user shows empty roles array and gets "Unauthorized" error22Jul 23, 2021
Troubleshooting importing HTML content into Sanity using @sanity/block-tools4Jul 23, 2021
How to dereference array of testimonial references in GROQ query?2Jul 21, 2021
How to expand nested references while keeping sibling items in array?4Jul 20, 2021
Best practice for alt text on images in block content?9Jul 20, 2021
How to fix "untitled" document name in Sanity schema type?16Jul 12, 2021
How to get title field from reference in Sanity preview?70Jul 1, 2021
GROQ: Filter posts by category when categories is an array field7Jun 29, 2021
Best way to copy an array field between documents in Sanity?6Jun 25, 2021
Output referenced person image as background in Next.js from Sanity query5Jun 25, 2021