RealtimeQueryDefinition class

Represents a compiled query definition for realtime fetch and subscription.

This object is used internally to identify live query subscriptions and to build the server request payload.

Constructors

RealtimeQueryDefinition({required String collection, JsonMap? filter, Map<String, int>? sort, int? limit})
RealtimeQueryDefinition.document({required String collection, required String id, required String idField})
Creates a query definition for a single document based on its id.
factory

Properties

collection → String
final
filter → JsonMap
final
hashCode → int
The hash code for this object.
no setteroverride
limit → int?
final
queryId → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sort → Map<String, int>
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
toSubscriptionMessage(String type) → JsonMap
Builds the JSON message used to subscribe or fetch this query.

Operators

operator ==(Object other) → bool
The equality operator.
override