Skip to main content
Version: v10.0.0

RealtimeConstraints

Typed Realtime Database constraints for the type of a list's children, built as a chain. A query can have one

orderBy* ; cursors and equalTo become available after it and take the ordered value.


Import
import { RealtimeConstraints } from "@hyper-fetch/firebase"

Structure​

RealtimeConstraints
NameTypeDescription
limitToFirst(limit)
limitToFirst

Limit to the first children, like limitToFirst() .

limitToLast(limit)
limitToLast

Limit to the last children, like limitToLast() .

orderByChild(path)
orderByChild

Order by a child value, like orderByChild() . Nested children use / : "author/name" .

orderByKey()
orderByKey

Order by key, like orderByKey() .

orderByValue()
orderByValue

Order by the children's own values, like orderByValue() .

toJSON()
toJSON

The collected constraints, the data a request or listener stores.