Skip to content

Method removeOne/removeMany doesn't trigger hooks #11

@artzhookov

Description

@artzhookov

Native driver has aliases removeOne for deleteOne and removeMany for deleteMany but mongodbext doesn't wrap these methods. So when removeOne/removeMany are called hooks are not triggered.

There two ways to fix this problem:

  1. wrap removeOne/removeMany similar to deleteOne/deleteMany
  2. deprecate this methods

What are you think?

Metadata

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