Skip to content

The error caused by Binary when using lean queries still exists in 8.9.2 #15122

Closed
@nikzanda

Description

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:
Image

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions