Update, aggregation pipeline in pymongo not recognising field_path and taking value as literal string

will not alter the collection my_collection unless you have a $merge stage.

If I understand correctly, what you want to do is:

1 Like