Member Junction
    Preparing search index...

    Function LoadRelatedRecordsBatched

    • Populates the named child collections across a set of already-materialised parent entities.

      Unknown collection names are logged and skipped rather than thrown, so a caller asking for a collection that a particular subclass does not declare degrades to "no children loaded" instead of failing the whole view.

      Parameters

      • parents: BaseEntity<unknown>[]

        The entity objects returned by the view. Entities that do not declare a named collection are left untouched.

      • collectionNames: string[]

        The companion names to populate.

      • provider: IRunViewProvider

        The provider used to issue the batched queries.

      • OptionalcontextUser: UserInfo

        The acting user, required server-side.

      Returns Promise<void>