David Alonso
David Alonso9mo ago

creating a document id and using it when creating a document

I was wondering if it’s possible to create a convex document id in one part of the app and then pass that into a mutation that uses it when creating a new document.
1 Reply
erquhart
erquhart9mo ago
Can you zoom out a bit and share what you're trying to accomplish? The short answer is no - guessing you're creating two entities and they both require one another's id? If so, there's a doc: https://docs.convex.dev/database/schemas#circular-references

Did you find this page helpful?