Packagecom.tuarua.firebase.firestore
Classpublic class FieldValue
InheritanceFieldValue Inheritance Object
Subclasses DeleteFieldValue, NumericIncrementFieldValue, ServerTimestampFieldValue



Public Methods
 MethodDefined By
  
[static] Returns a special value that can be used with set() or update() that tells the server to increment the field's current value by the given value.
FieldValue
  
[static] Returns a sentinel for use with update() to mark a field for deletion.
FieldValue
  
[static] Returns a sentinel for use with set() or update() to include a server-generated timestamp in the written data.
FieldValue
Method Detail
increment()method
public static function increment(by:Number):FieldValue

Returns a special value that can be used with set() or update() that tells the server to increment the field's current value by the given value.

If the current value is an integer or a double, both the current and the given value will be interpreted as doubles and all arithmetic will follow IEEE 754 semantics. Otherwise, the transformation will set the field to the given value.

Parameters

by:Number

Returns
FieldValue — The FieldValue sentinel for use in a call to set() or update().
remove()method 
public static function remove():FieldValue

Returns a sentinel for use with update() to mark a field for deletion.

Returns
FieldValue
serverTimestamp()method 
public static function serverTimestamp():FieldValue

Returns a sentinel for use with set() or update() to include a server-generated timestamp in the written data.

Returns
FieldValue