Skip to content

getChanges should be renamed to $getChanges in mongoose 10 #15959

@AbdelrahmanHafez

Description

@AbdelrahmanHafez

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the issue has not already been raised

Issue

Basically the title. We should also go over the rest of the internal properties/methods and make sure they all start with $, if anyone uses getChanges as a method or a property name they'll now be unable to use getChanges.

Maybe we can even introduce an alias $getChanges now, and for the rest of the properties, if any, and make the original getChanges emit a deprecation warning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionIf you have any thoughts or comments on this issue, please share them!

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions