Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kennethtegrado opened this issue Jul 29, 2022 · 1 comment

Comments

@kennethtegrado
Copy link

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?

@rahrang
Copy link

rahrang commented Mar 8, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants