client icon indicating copy to clipboard operation
client copied to clipboard

Create a new element but a field requires a reference to another document from another collection.

Open kennethtegrado opened this issue 4 years ago • 1 comments

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?

kennethtegrado avatar Jul 29 '22 13:07 kennethtegrado

+1 for this -- the docs don't give any insight

rahrang avatar Mar 08 '23 05:03 rahrang