While I'm reading the limits of transactions, I found this:
Maximum number of field transformations that can be performed on a single document in a Commit operation or in a transaction : 500
but what is a "field transformations"? I can't find any information about this.
Does it mean when you use FieldValue.* for a field? If it is, how many operations counted in the following code?
var batch = db.batch();
var cityRef = db.collection('cities').doc('BJ');
batch.update(cityRef, {
population: firebase.firestore.FieldValue.increment(50)
_capital: firebase.firestore.FieldValue.delete(),
f1: 'foobar',
f2: 'foobarbaz',
});
batch.commit().then(() => {
// ...
});
Does it count as three operations?
FieldValue.incrementFieldValue.delete- the
update()it self.