Skip to content

ReadOptions

Options shared by the two content-reading endpoints.

optional ctx?: ContextBag

The personalization context. Present = server-resolve (personalization collapsed, tokens injected); absent = client-resolve (unresolved variant-set envelopes come back).


optional locale?: string

One locale code. The server resolves its fallback chain; the high-level client picks the code.


optional raw?: boolean

Keep Localizable envelopes unresolved. Never sent by the high-level client.


optional referencePaths?: boolean

Attach every reference descriptor’s own published address(es) — wire include=referencePaths. The paths member is the same one listComponents({ paths: true }) puts on an item, with the same rules, but on the references inside a document: a post’s series, a parent article, a related-reading list. [] means the target is bound at no live node; the member being absent means this option was not sent.

Present at any depth and whether or not the descriptor was expanded, so a resolve: 0 read is enough to build navigation. Pick one with pathForSite.


optional resolve?: number

Expansion depth (an integer, capped at 10 server-side). Omitted = 0, descriptors only.


optional signal?: AbortSignal

RequestOptions.signal