Realm~App.Sync.Subscription

Class representing a single query subscription in a flexible sync Realm.App.Sync.SubscriptionSet. This class contains readonly information about the subscription – any changes to the set of subscriptions must be carried out in a Realm.App.Sync.SubscriptionSet#update callback.

createdAt
readonly

The date when this subscription was created

Type:
Date
id
readonly

The ObjectId of the subscription

Type:
BSON.ObjectId
name
readonly

The name given to this subscription when it was created.

Type:
string or null
objectType
readonly

The type of objects the subscription refers to.

Type:
string
queryString
readonly

The string representation of the query the subscription was created with. If no filter or sort was specified, this will return "TRUEPREDICATE".

Type:
string
updatedAt
readonly

The date when this subscription was last updated.

Type:
Date