-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: TypeScript
Community Request
Automatic type narrowing when using projections would be amazing!
Ex. When you add a projection to get only the name field in a user object then similar to a TypeScript Pick the resulting document would have type of Pick<User, “name”>
Impact
- popular comment in recent reddit thread soliciting community feedback
- is related to
-
NODE-3454 Projection<TSchema> type is too narrow in Node.js driver
- Closed