# RelationFieldChildLoader

Implements IMultiModuleTreeChildLoader.

Loads all child BaseBeans of the given parent by using the relation field of the relation data and the ID of the parent BaseBean.

Member Description
constructor(private readonly relationData: RelationFieldRelationData) Constructor that receives the relation data. The relation data is used to retrieve the relation field.
loadChildren(parent: BaseBean): Promise<BaseBean[]> Implemented due to IMultiModuleTreeChildLoader. Loads the child BaseBeans of the parent asynchronously.
static loadChildren(relationData: RelationFieldRelationData, parent: BaseBean): Promise<BaseBean[]> Static implementation of loadChildren, so the class does not have to be instantiated outside.
Request missing documentation