Make find(projection=...) return copies of the values by niklasj · Pull Request #753 · mongomock/mongomock
requested changes Feb 6, 2022
Make sure that the values returned from find() and find_one() when a projection is specified don't share any references to the actual db documents. Fixes mongomock#728
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