Here is my code :
results = db.products.update_many({"brandReference": idMongoToReplace}, {'$set': {'brandReference':idMongoToUse}},ReturnDocument.AFTER)
pprint(results)
I would like to have an array with the updated objects. (the operations is ok in mongo, but i want to get back the object updated)
For the moment i have a :
<pymongo.results.UpdateResult object at 0x7f9d913ad208>