VectorValue
Represents a vector type in Firestore documents. Create an instance with vector.
class VectorValue { }
toArray(): number[];
toJSON(): object;
§Methods
§
isEqual(other: VectorValue): boolean
[src]Returns true
if the two VectorValue
values have the same raw number arrays, returns false
otherwise.
§
toJSON(): object
[src]Returns a JSON-serializable representation of this VectorValue
instance.
@return
a JSON representation of this object.
§Static Methods
§
fromJSON(json: object): VectorValue
[src]Builds a VectorValue
instance from a JSON object created by VectorValue.toJSON.
@param json
a JSON object represention of a VectorValue
instance.
@return
an instance of VectorValue if the JSON object could be parsed. Throws a FirestoreError if an error occurs.