Skip to content
This repository was archived by the owner on Oct 24, 2024. It is now read-only.
This repository was archived by the owner on Oct 24, 2024. It is now read-only.

returnOriginal flag is deprecated in findOneAndUpdate #38

@dulacskamty

Description

@dulacskamty

Hi!
I really like this great package, thanks for creating that!

However, I got a DeprecationWarning during .get():
"[MONGODB DRIVER] DeprecationWarning: collection.findOneAndUpdate option [returnOriginal] is deprecated and will be removed in a later version".

(Other developers have also experienced this warning with MongoDB driver:
Automattic/mongoose#10285)

This deprecation was introduced in the latest MongoDB driver:
https://jira.mongodb.org/browse/NODE-1812

I thought that maybe you may want to know about this deprecation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions