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
I can confirm this was fixed in v6.0.4 with #10605. We'll move this to our v5.13.10 milestone so we know to backport it when we have time, but I don't expect us to get to that for another week or two. Are you able to upgrade to Mongoose 6.x or is there something blocking you?
No known blockers, just general fear of breaking changes and upgrades (and frankly while the migration guide looks comprehensive, it's a little hard to quickly glean what issues we should mostly look out for). But we can definitely give it a try!
Do you want to request a feature or report a bug?
bug
What is the current behavior?
TypeScript Playground Link
Error:
(easier to see on the TS playground link, above).
If I change my schema to this, it works fine:
but of course, I want the
schedule
to be required!What is the expected behavior?
No type error
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
The text was updated successfully, but these errors were encountered: