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
Can you have multiple "type: reference" entries in an array in Sanity.io?13Dec 31, 2020
Bidirectional references and custom input components for managing many-to-many relationships in Sanity13Dec 31, 2020
`slug` is `undefined` when I track mark and children from internalLink5Dec 14, 2020
Sanity schema not recognizing custom commercejsProducts type4Dec 14, 2020
Using groq is there a way to resolve all references inside your data no matter how deep?5Dec 3, 2020
Is there a way to set a default sort ordering in your documents?16Dec 2, 2020
Is there a way to query documents that aren’t referenced by another type of document?7Nov 23, 2020
Manual references not showing in Studio after client-side creation6Nov 21, 2020
Testing Next.js build locally like Gatsby build && serve4Nov 10, 2020
Anyone who could help me out with sanity/mux?6Nov 3, 2020
Are there some limitations on -> when nested like this?14Oct 23, 2020
Unknown type: svgUploadPreview. Valid types are: page, goal, array...5Oct 19, 2020
Is there a way to resolve a reference in a custom validation?11Oct 14, 2020
How to grab image metadata from images inserted into Content blocks?8Sep 28, 2020
What is the best way to validate that e.g. a title for a document is unique within its type?6Sep 21, 2020
how to limit a reference to just one entry in Studio reference input side versus the default as-many-entries-as-you-fill-in-an-array...4Sep 18, 2020
I'm having a issue with deploying graphql query something about top level schema error.12Sep 12, 2020
How do I make a patch request to a document to change its type? This is resulting in an error Cannot modify immutable attribu...12Sep 11, 2020