package
0.0.0-20241001120344-791233ab31d1
Repository: https://github.com/wearemojo/mojo-public-go.git
Documentation: pkg.go.dev
# Functions
ResolveReferences recursively resolves all references in the provided documents, returning a map of all documents by their ID, and a set of IDs of any referenced documents that are missing.
ResolveReferencesStrict is a strict version of ResolveReferences, which will return ErrReferencedDocumentMissing if any referenced Document is missing.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
# Type aliases
Document is a Document from a Sanity dataset
It must have a string `_id` field uniquely identifying the Document
Any nested fields wishing to reference another Document must be a map with a `_ref` key, whose value matches the `_id` of the Document to reference
Unmarshal directly into this type to use this package.