Replies: 2 comments 5 replies
-
@guiaramos - There isn't a need to "handle" subdocuments with Mongoose. They are automatically part of the parent parent via dot notation, like Scott |
Beta Was this translation helpful? Give feedback.
1 reply
-
Ok. So, Scott |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
sub documents are also know as embedded documents, this is the explanation on typegoose github:
I know that the library works well with reference of other documents:
But I didn't find any explanation on how to handle subdocuments:
I have tried to use the @CursorConnection:
however, it does not work as expected because I there is no resolver to add a new membership subdoc to the array of memberships..
Also, when using normal type referencing:
I get the following error:
How to correct handle the subdocuments using Typegoose?
Beta Was this translation helpful? Give feedback.
All reactions