I have a object for balances(inventory) which contains various type of items.
however increment does not work well with this.
Here's an example
// This works
await this.ref.update({'gold': FieldValue.increment(1)});
// This does not work
await this.ref.update({
balances: {
[key]: FieldValue.increment(value)
}
});