The count callback is called, when the asynchronous query operation completes successfully
the matching object count
A Promise, result or undefined
The fail callback is called, when the asynchronous query operation is rejected by an error
The error which reject the operation
A Promise, result or undefined
This callback is called whenever the result of the real-time query changes. The received event contains information on how the query result changed.
The real-time query event
This callback is called whenever the result of the real-time query changes. The full result set is received.
The updated real-time query result
An event for a real-time query.
the database entity this event was generated for, e.g. an entity that just entered or left the result set, or an array of entities, if this event type is an initial result
server-time from the instant at which the event was generated
for sorting queries only: the position of the matching entity in the ordered result (-1 for non-matching entities)
a boolean value indicating whether this event reflects the matching status at query time (true) or a recent change data change (false)
indicates how the transmitted entity relates to the query result. Every event is delivered with one of the following match types:
the operation by which the entity was altered 'none' if unknown or not applicable
The resultList callback is called, when the asynchronous query operation completes successfully
The query result list, an empty list if no match was found
A Promise, result or undefined
The singleResult callback is called, when the asynchronous query operation completes successfully
The matching object or null id no matching object was found
A Promise, result or undefined
Generated using TypeDoc
This callback is called when the network connection is closed (e.g. because of network timeout or lost Wi-Fi connection)