max method

ModifierBuilder max(
  1. String fieldName,
  2. dynamic value
)

Only updates the field if the specified value is greater than the existing field value.

Implementation

ModifierBuilder max(String fieldName, value) {
  _updateOperation('\$max', fieldName, value);
  return this;
}