Constraint

sealed class Constraint : Js.Referable

Represents constraints on the values of data nodes sent by subscriptions.

Types

Link copied to clipboard
class Between(val startKey: String, val endKey: String) : Constraint

Children between: the values of data nodes sent by subscriptions will be limited to the child nodes of the actual data nodes whose keys are between startKey and endKey (included).

Link copied to clipboard
class EndAt(val endKey: String, val limit: Int? = null) : Constraint

limit children until endKey: the values of data nodes sent by subscriptions will be limited to the last limit child nodes (or all child nodes if limit is not set) of the actual data nodes whose keys are lesser than or equal endKey.

Link copied to clipboard
class First(val limit: Int) : Constraint

First limit children: the values of data nodes sent by subscriptions will be limited to the first limit child nodes of the actual data nodes.

Link copied to clipboard
class Last(val limit: Int) : Constraint

Last limit children: the values of data nodes sent by subscriptions will be limited to the last limit child nodes of the actual data nodes.

Link copied to clipboard
object None : Constraint

No constraint: the values of data nodes are sent without filtering any child node.

Link copied to clipboard
class StartAt(val startKey: String, val limit: Int? = null) : Constraint

limit children from startKey: the values of data nodes sent by subscriptions will be limited to the first limit child nodes (or all child nodes if limit is not set) of the actual data nodes whose keys are greater than or equal startKey.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard