> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Firebase Realtime Database child observations

> Observe direct children of a fixed Firebase Realtime Database path.

Use the [Documents mount](https://docs.bijection.com/integrations/native-mongodb.md#mount-and-start) with
`firebaseChildren(origin, auth, data)`. Set the Firebase Realtime
Database instance's HTTPS origin and a receiver `bearer` credential
with a Google OAuth access token authorized to read the instance.
The credential operator must refresh a sealed access token before it
expires. An existing OAuth refresh-token binding can manage token
renewal when the Google credential supports that grant. Pass the same label to the receiver binder and as the app's `data`.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{ selection: { mode: "firebase-realtime-database", children: { path: "inventory/items" } } }
```

The REST connector polls one JSON object with `orderBy="$key"`, starting
with one child and allowing two on continuation. Use immutable child keys
that start with an ASCII letter or underscore, followed by at most 383
ASCII letters, digits, underscores or hyphens. This avoids Firebase's
separate numeric-key ordering. The REST result has no ordering guarantee.
The decoder sorts the keys, drops the inclusive `startAt` overlap when
present and accepts up to 36 KiB per answer. An empty page ends the sweep.
Each page observes its own read, and missing children stay published.
This mode polls the REST API with key positions.

[REST retrieval](https://firebase.google.com/docs/database/rest/retrieve-data) ·
[REST authentication](https://firebase.google.com/docs/database/rest/auth)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.