Skip to content

HiddenDocument

Defined in: packages/core/src/db/types.ts:318

Placeholder populateDocs substitutes for a populated relationship/upload target the caller’s resolved read decision denies, in place of the real Doc<TargetSlug> — same seam AccessDeniedItemRow already renders for a direct get() on a relationship/upload field’s own id, now reached through a populated field too.

Carries just enough to render a locked row without ever exposing the target document’s own fields: _id (so a list key / remove action still has something to key off), and the same { code, resource, action } shape VexAccessError.data carries for a direct denied read. A denial that is only FIELD-scoped (the caller may read the target doc, just not every field on it) never produces this — the target doc comes back with the denied fields stripped by stripDeniedFields instead, same as a direct get/find/search read.

TResource extends string = string

The target collection’s slug.

_id: Id<TResource>

Defined in: packages/core/src/db/types.ts:320

The target document’s own id, never stripped.


action: "read"

Defined in: packages/core/src/db/types.ts:326

Always "read" — populate only ever resolves a target for reading.


code: "ACCESS_DENIED"

Defined in: packages/core/src/db/types.ts:322

Always "ACCESS_DENIED" — mirrors VexAccessError.data.code.


resource: TResource

Defined in: packages/core/src/db/types.ts:324

The denied target collection’s slug.