-
Is this possible to add children when receiving post request with this kind of content: {
"name": "parent",
"child":{
"name": "child"
}
} This would create child and parent object. Instead, I get |
Beta Was this translation helpful? Give feedback.
Answered by
jmikrut
Jun 8, 2022
Replies: 1 comment 2 replies
-
Hey @MattRvt — right now, this is not possible. It could be a a future feature that we build, but it'll take some new functionality to achieve. The way we'd do this currently is to first create the nested document, then pass the newly created document's ID to your parent doc. So: const parentDocData = {
"name": "parent",
"child": "6a3434543qw3derra" // ID of newly created child doc
} |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
MattRvt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @MattRvt — right now, this is not possible. It could be a a future feature that we build, but it'll take some new functionality to achieve. The way we'd do this currently is to first create the nested document, then pass the newly created document's ID to your parent doc.
So: