You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the expected behavior?
Supported behaviour, no error.
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
Node v14.17.6
NestJS 8.1.1
MongoDB 5 (though irrelvant here)
Mongoose 6.0.7
The text was updated successfully, but these errors were encountered:
cloakedch
changed the title
Is $in / $nin broken for enums in TypeScript
Is $in / $nin broken for enums in TypeScript?
Sep 21, 2021
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
$in and $nin types used to support enums in mongoose 5.x, now with 6.x, there is a type error with the latest NestJS.
If the current behavior is a bug, please provide the steps to reproduce.
Now
$in
is marked as having an error, sinceThis used to work fine in mongoose 5.x, and I could not find any hints about this change in the changelog.
The last line above works fine (in regards to tsc) when using
Obviously, that is not a solution.
tsconfig.json
What is the expected behavior?
Supported behaviour, no error.
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
Node v14.17.6
NestJS 8.1.1
MongoDB 5 (though irrelvant here)
Mongoose 6.0.7
The text was updated successfully, but these errors were encountered: