The error caused by Binary when using lean queries still exists in 8.9.2
#15122
Closed
Description
opened on Dec 19, 2024
Prerequisites
- I have written a descriptive issue title
- I have searched existing issues to ensure the bug has not already been reported
Mongoose version
8.9.2
Node.js version
20.10.0
MongoDB server version
6.0.2
Typescript version (if applicable)
5.5.4
Description
In version 8.9.2 of Mongoose, it seems that the error shown in this issue (and this one) is still not resolved.
In the reproduction link the query does not return IParent fields:
Instead, in my project, the last part of the error updates from:
Type 'Binary | null | undefined' is not assignable to type 'Buffer | undefined'.
Type 'null' is not assignable to type 'Buffer | undefined'.
to
Type 'Binary | undefined' is not assignable to type 'Buffer | undefined'.
Type 'Binary' is missing the following properties from type 'Buffer': equals, compare, copy, slice, and 93 more.
Steps to Reproduce
Reproduction link here.
Expected Behavior
No response
Metadata
Assignees
Labels
No labels
Activity