Skip to content

Deprectation warning returnOriginal mongo #7623

Closed
@Moumouls

Description

@Moumouls

New Issue Checklist

Issue Description

Getting

collection.findOneAndUpdate option [returnOriginal] is deprecated and will be removed in a later version.

Steps to reproduce

Pull master branch and run trigger findOneAndUpdate on db adapter

Actual Outcome

A lot of deprecation warnings

Expected Outcome

No warning

Environment

5.0.0-alpha.1

We need to replace returnOriginal with returnDocument as suggested here: https://jira.mongodb.org/browse/NODE-1812

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions