We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Calling .create() on model gives an error:
error TS2590: Expression produces a union type that is too complex to represent.
It happens only in CI for some reason.
The code is quite simple, so I don't think it is connected with our typedefinitions
// agreement type is defined as AgreementFromForm & { ownerId: Types.ObjectId; createdBy: Agreement['createdBy']; createdAt: Agreement['createdAt']; } this.agreementModel.create({ // <- errors here _id: new Types.ObjectId(), ...agreement });
code here
no
The text was updated successfully, but these errors were encountered:
Duplicate of #499
Sorry, something went wrong.
is there an full reproduction code?
and did you already try an higher/lower typescript version?
closing, because duplicate of #499
No branches or pull requests
Versions
"@types/mongoose": "<=5.10.5",
What is the Problem?
Calling .create() on model gives an error:
It happens only in CI for some reason.
Code Example
The code is quite simple, so I don't think it is connected with our typedefinitions
Do you know why it happens?
no
The text was updated successfully, but these errors were encountered: