population
Population Skill
Installation: If not already installed, add the required packages:
pnpm add @efesto-cloud/population(forPopulatetype andnormalizePopulatehelper)pnpm add @efesto-cloud/mongodb-population(forBasePopulatorandQueryBuilderclasses)
Adds MongoDB population support — typed eager-loading of related documents via aggregation $lookup — to an existing entity. The entity, its DTO, document type, mapper, and repository are assumed to already exist. This skill only patches them where needed and writes the population infrastructure.
Scope: Shape type, QueryBuilder, Populator, plus targeted patches to entity, DTO, document, mapper, and repository interface/implementation.
Does not: create entities or repositories from scratch, write use cases, or manage DI container wiring.
Phase 0 — Clarify Intent
If the user has not specified which entity to populate and/or which fields should be populated, use AskUserQuestion to ask:
- Which entity needs population?
More from efesto-cloud/skills
persistence
>
19value-object
|
18type-enum-dict
|
18usecase
>
17entity
Create or modify domain entities using the @efesto-cloud/entity package. Use this skill whenever the user asks to add a new entity, update an existing entity, add properties or methods to an entity, or work on the entity/dto layer. Trigger when the user says things like "create a Foo entity", "add a field to Bar", "I need a new domain object", or "add entity X". Also trigger for DTO creation or modification.
17webapp-loader-action
>
12