-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
fix(index.d.ts) treat _id like other fields in $project #11102
fix(index.d.ts) treat _id like other fields in $project #11102
Conversation
_id can also be null and could be an issue if strictNullChecks is true. |
Both cases below also work because of the
Was that your concern? Could you please clarify? Thank you! |
You are right. This is not an issue. Good Work. |
I'm not sure that is a correct definition. MongoDB allows a lot of variations for
Or even:
|
I agree with you. So I don't think that we should treat |
This would work. Can we merge this and release it in next version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 👍
Fix #11088
Fix #11099
Changed type to
✔️ OK
✔️ OK
❌ Error