-
Notifications
You must be signed in to change notification settings - Fork 139
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
Mongoose SubDocument #1543
Comments
@doug-martin sorry but I really stuck on this |
This library doesn't work with mongoose v6. You need to use mongoose v5. |
Or try the Typegoose version. Also the updated fork (look through the issues). This package has been dead for a while. Scott |
already using the mongoose v5 @DedWatson :( |
You made a mistake. Look at this
|
Have you read the Contributing Guidelines?
Yes.
Hey, before the question here is a context:
I'm using mongoose and I have 2 models (JobCard, Part) where JobCard has multiple Parts with different statuses for each Part, so I decided to go with subdocument, and here the problem started.
JobCard schema
JobCardPart schema
and the DTOs are as follows
JobCard Dto
JobCardPart Dto
Part Dto
when I try to run this query
I'm getting this error
ID cannot represent value: { type: \"Buffer\", data: [Array] }
.Thanks in advance.
The text was updated successfully, but these errors were encountered: