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

# MarkLogic JSON documents

> Mount MarkLogic JSON documents on your app.

Follow the [REST mounting guide](https://docs.bijection.com/integrations/native-rest.md#mount-and-bind).
Pass the receiver below as `receivers.provider`, bound with `providerEndpoint`
from `@bijectionhq/app-rest` and sealed bearer or Basic authentication with search and document read access.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
export const remote = providerEndpoint(
  "marklogic/collection.documents.observations",
  "https://marklogic.example.com:8000",
  "/v1/search",
  auth,
  data,
);
```

Bind the mount under the same `data` label as the receiver. As the mount's operator, call `source.initialize`.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{ profile: { mode: "provider", provider: "marklogic/collection.documents.observations", limit: 25, selection: "updatedAt", collection: "orders", fields: ["status"] } }
```

Choose one collection and a JSON watermark property with an `xs:dateTime` range index. Select up to 24 document properties. The fixed combined search reads JSON results in watermark order; URIs key records. Offsets advance using the reported search total. A terminal page restarts the sweep. A mutable index can shift offsets, and missing documents leave prior observations in place.

Up to 100 records and 36 KiB per response. The bundled parser is required. Rows and their next position
commit together. Review failures through `source.health`.

[Provider API reference](https://docs.marklogic.com/REST/POST/v1/search)


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