add support for mergeObjects operator by elbehery95 · Pull Request #689 · mongomock/mongomock
Conversation
As per #642
The current implementation follows the operator as defined such that on all null an empty doc is returned, and the docs are merged using dict.update method
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your PR.
Please add multiple tests in test__mongomock to ensure there are no regressions in the future.
removed mergeobjects exception checking tests and added a single test__merge_objects under the aggregate tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters