rowy icon indicating copy to clipboard operation
rowy copied to clipboard

Derivative fields have to listen for sub collections changes

Open n-sviridenko opened this issue 3 years ago • 0 comments

We have a sub collection we want to listen to in order to update its parent document field value. This is needed in order to not compute its value manually every time visiting that sub collection, which takes a lot of time.

Sample use-case: summing up amounts of cart items and writing it down to the cart, which is a parent document to them.

Unfortunately, currently derivative fields only consider the current document changes.

n-sviridenko avatar Dec 19 '21 18:12 n-sviridenko