Skip to main content
Version: v10.0.0

createRealtimeConstraints

Start an empty Realtime Database constraints chain. The adapter passes one to every queryParams callback.


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

Parameters​

createRealtimeConstraints<Doc>()

Returns​

createRealtimeConstraints
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 / : &quot;author/name&quot; .

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.