QuerySubscription
@frozen
public struct QuerySubscription<T> where T : RealmSwiftObject
SubscriptionQuery is used to define an named/unnamed query subscription query, which
can be added/remove or updated within a write subscription transaction.
-
Creates a
QuerySubscriptionfor the given type.Declaration
Swift
public init(name: String? = nil, query: QueryFunction? = nil)Parameters
nameName of the subscription.
queryThe query for the subscription, if nil it will set the query to all documents for the collection.
-
Creates a
QuerySubscriptionfor the given type.Declaration
Swift
public init(name: String? = nil, where predicateFormat: String, _ args: Any...)Parameters
nameName of the subscription.
predicateFormatA predicate format string, optionally followed by a variable number of arguments, which will be used to create the subscription.
-
Creates a
QuerySubscriptionfor the given type.Declaration
Swift
public init(name: String? = nil, where predicate: NSPredicate)Parameters
nameName of the subscription.
predicateThe predicate defining the query used to filter the objects on the server..
View on GitHub
Install in Dash