returnNew property

bool returnNew
getter/setter pair

When true, returns the modified document rather than the original. The findAndModify method ignores the 'new' option for remove operations. The default is false.

Original name new renamed in returnNew because of the reserved word

Implementation

bool returnNew;