Update dictionaries by update rule map #45

Open
opened 2021-05-03 17:06:52 -04:00 by russellballestrini · 0 comments
russellballestrini commented 2021-05-03 17:06:52 -04:00 (Migrated from git2.unturf.com)

Created by: avico78

In case there's a need to update many keys ,
I need to run the nested_update as number of keys required to update.
not efficient as it be done in single search .

So it could really nice update if update nested_update function
will support multiple updates in single batch .
in example by dictionary which contain update rules .


update_rules = {"name": fake.first_name() ,"last_name": fake.last_name, "id": random(100)} )

result = nested_update(my_document, multiple_update_by = update_rules  )

*Created by: avico78* In case there's a need to update many keys , I need to run the nested_update as number of keys required to update. not efficient as it be done in single search . So it could really nice update if update nested_update function will support multiple updates in single batch . in example by dictionary which contain update rules . ```python update_rules = {"name": fake.first_name() ,"last_name": fake.last_name, "id": random(100)} ) result = nested_update(my_document, multiple_update_by = update_rules ) ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: python/nested-lookup#45
No description provided.