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
How to expand array of mixed-type references in GROQ query?15Mar 15, 2021
How to return title instead of value from string/list in Sanity?6Mar 15, 2021
HTML table component or styling in sanity-ui?8Mar 12, 2021
How to dereference and get name from companyType reference in Sanity query2Mar 7, 2021
How to set initial value for reference field in Sanity schema?9Mar 4, 2021
Patch API: append to empty array fails, but prepend works2Mar 4, 2021
<question>Destructuring array of references inside fieldset/nested object in GROQ</question>5Mar 3, 2021
Dereference only references in mixed array, leaving objects intact4Mar 2, 2021
GROQ: Resolve array references while keeping _key property9Mar 1, 2021
Hide array "Add" button when max validation limit is reached2Feb 26, 2021
Concatenate multiple fields for document title in Sanity Studio list view6Feb 25, 2021
Dereferencing nested object references in GROQ array query6Feb 24, 2021
Can next-optimized-images load remote images from Sanity CDN?37Feb 23, 2021
How to Handle Slugs for Index Pages Using Next.js6Feb 18, 2021
How to unset/clear a nonexistent reference field in Sanity CMS26Feb 17, 2021
GROQ join: Filter products by category name using reference16Feb 15, 2021
Slug not generating correctly when importing external MongoDB data7Feb 15, 2021
How to fetch all references in GROQ block content query?14Feb 9, 2021