> ## 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.

# OData entity set source

> Read one OData v4 entity set into your app.

The OData app publishes one current row per declared key. Pages and
positions commit together under the mount's `data` label.

The mount's clock starts a due pass at its next ten-second turn. Each page
progresses through a continuation of the entity-set receiver's task.

## Mount and bind

```ts app.ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
import { app, label, secret } from "@bijectionhq/bijection";
import odata, { odataEntitySet } from "@bijectionhq/app-odata";

const catalog = label();
const token = secret();
const products = odataEntitySet("https://catalog.example", "/odata/Products", { kind: "bearer", secret: token }, catalog);

export default app({ catalog, token, products, odata: odata({ data: catalog, provider: products }) });
```

```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
bijection secret set token
bijection mutate odata.source.initialize '{"key": "ProductID", "columns": null}'
```

`odata.operator` is granted from code: `ctx.grant(odata.operator, { to, under })` in one of your
mutations ([Grants](https://docs.bijection.com/access/grants.md)).

The receiver and the mount live under the same `data` label. The mount's
`operator` role clears it and is the only role `odata.source.*` and
`odata.entities.list` allow. The key is one non-empty string or exact integer
property; an invalid key refuses `InvalidKey`. `columns` is a Dataverse
projection of up to 16 names, or `null`. The app stores that key's JSON
representation and the record as JSON text. Integers beyond JavaScript's safe
range and decimal tokens retain their original text. Use a public endpoint
without credentials or a scoped bearer or OAuth2 credential.

For a Dataverse v9.2 table, see [Dataverse change tracking](https://docs.bijection.com/integrations/native-dataverse.md).

## Paging and recovery

The mounted clock starts due reads and recovers stalled passes. Use the
revision from `source.health` when requesting an early poll, pausing, or
resuming the feed.

The HTTPS receiver admits one collection path. A provider continuation
must stay on that origin and path and use only the allowed paging query
options. An HTTP 410 on a retained position stops the source. An authorized
installer can inspect health and call `source.reset` with the displayed
revision and gap instant to start a baseline. A reset preserves already
published records. The app applies explicit keyed `@removed` and
`@odata.removed` entries. It cannot infer deletion from an omission.

Pages over 36 KiB are refused before publication. The guest parser bounds
record counts, fields and nesting. The host asks for at most 100 entries
per page. Deploying the app requires the bundled parser module in
`@bijectionhq/library-formats`. The implementation has yet to be compiled or tested.


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