MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / populate

Method populate

packages/sql/src/query/QueryBuilder.ts:1968–1979  ·  view source on GitHub ↗

* @internal

(
    populate: PopulateOptions<Entity>[],
    populateWhere?: ObjectQuery<Entity> | PopulateHint | `${PopulateHint}`,
    populateFilter?: ObjectQuery<Entity> | PopulateHint | `${PopulateHint}`,
  )

Source from the content-addressed store, hash-verified

1966 * @internal
1967 */
1968 populate(
1969 populate: PopulateOptions<Entity>[],
1970 populateWhere?: ObjectQuery<Entity> | PopulateHint | `${PopulateHint}`,
1971 populateFilter?: ObjectQuery<Entity> | PopulateHint | `${PopulateHint}`,
1972 ): this {
1973 this.ensureNotFinalized();
1974 this.#state.populate = populate;
1975 this.#state.populateWhere = populateWhere;
1976 this.#state.populateFilter = populateFilter;
1977
1978 return this;
1979 }
1980
1981 /**
1982 * Sets a LIMIT clause to restrict the number of results.

Callers

nothing calls this directly

Calls 1

ensureNotFinalizedMethod · 0.95

Tested by

no test coverage detected