Skip to content

PopulateShape

PopulateShape<TCollectionSlug> = { [K in RelationshipKeysOf<TCollectionSlug>]?: true | { populate: PopulateShape<RelationshipTargetOf<TCollectionSlug, K>> } }

Defined in: packages/core/src/api/types.ts:369

Recursive populate options, type-restricted to relationship field keys per the augmented CollectionsFieldTypeMap registry.

TCollectionSlug extends CollectionSlug = CollectionSlug

The collection slug to narrow relationship keys against. Defaults to the full CollectionSlug union for internal recursive use.