Skip to content

Type Alias: Populated<R, K>

Populated<R, K> = Omit<R, K> & { [P in K]: Record<string, unknown> }

Defined in: src/schema/field-types.ts:97

Result shape after populate(...keys) — populated ref fields become documents.

The hydrated field is typed as a generic object because a ref does not yet carry its target document type. This is intentionally loose and is outside the 1.0 type-stability guarantee — it may be narrowed in a minor release once the planned schema-registry API lands. See CONTRIBUTING.md.

Type Parameters

R

R

K

K extends keyof R

Released under the MIT License.