* Executes the query, returning array of results mapped to entity instances.
(limit?: number)
| 2595 | * Executes the query, returning array of results mapped to entity instances. |
| 2596 | */ |
| 2597 | async getResultList(limit?: number): Promise<Loaded<Entity, Hint, Fields>[]> { |
| 2598 | await this.em!.tryFlush(this.mainAlias.entityName, { flushMode: this.#state.flushMode }); |
| 2599 | const res = await this.execute<EntityData<Entity>[]>('all', true); |
| 2600 | return this.mapResults(res, limit); |
| 2601 | } |
| 2602 | |
| 2603 | private propagatePopulateHint<U extends object>(entity: U, hint: PopulateOptions<U>[]) { |
| 2604 | helper(entity).__serializationContext.populate = hint.concat(helper(entity).__serializationContext.populate ?? []); |
no test coverage detected