Skip to content
Advertisement

Tag: aggregation-framework

Mongo append to standardized string field based on mapping of multiple fields (including nested)

I have a large collection with fields like: I also have a Python dictionary mapping field values like: I’m trying to (in PyMongo) update my MongoDB collection so that a string field of mapped characters is accumulated, from both the top-level class field and the nested nested.classification fields. In the above, this would produce the following updates: How can I

Advertisement