mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
fix(mongo): propagate aggregate method's generic type to its returned cursor (#10754)
Co-authored-by: Mike Guida <mike@mguida.com>
This commit is contained in:
parent
184f463ed7
commit
56f1898c4e
@ -206,7 +206,7 @@ export class MongoRepository<
|
||||
aggregate<R = any>(
|
||||
pipeline: ObjectLiteral[],
|
||||
options?: AggregateOptions,
|
||||
): AggregationCursor<Entity> {
|
||||
): AggregationCursor<R> {
|
||||
return this.manager.aggregate<R>(
|
||||
this.metadata.target,
|
||||
pipeline,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user