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.
Type Parameters
Section titled “Type Parameters”TCollectionSlug
Section titled “TCollectionSlug”TCollectionSlug extends CollectionSlug = CollectionSlug
The collection slug to narrow relationship keys against.
Defaults to the full CollectionSlug union for internal recursive use.