client
client copied to clipboard
Create a new element but a field requires a reference to another document from another collection.
I would like to use sanity-client to create a new document inside a collection, but in my schema, one of the fields requires a reference to another document from another collection. How can I create this new document using the create() method?
+1 for this -- the docs don't give any insight