Better to have push function to update arrays
leakeyash opened this issue · 1 comments
leakeyash commented
There are some requirements to update arrays such as add, without push functions we have to update the whole array?
esendir commented
There are many update features like push, pop, pull, combine, rename, set, etc.
You can access them via Updater object in the repository.
In the readme sample is available for set method, for push you can use below sample
item = new Item();
var update = Updater.Push(i => i.Items, item);
repo.Update(item, update);