File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,11 +72,15 @@ declare module 'mongoose' {
7272 } [ keyof SchemaMap ] ;
7373
7474 class Connection extends events . EventEmitter implements SessionStarter {
75+ /** Runs a [db-level aggregate()](https://www.mongodb.com/docs/manual/reference/method/db.aggregate/) on this connection's underlying `db` */
7576 aggregate < ResultType = unknown > ( pipeline ?: PipelineStage [ ] | null , options ?: AggregateOptions ) : Aggregate < Array < ResultType > > ;
7677
7778 /** Returns a promise that resolves when this connection successfully connects to MongoDB */
7879 asPromise ( ) : Promise < this> ;
7980
81+ /** The Mongoose instance this connection is associated with */
82+ base : Mongoose ;
83+
8084 bulkWrite < TSchemaMap extends Record < string , AnyObject > > (
8185 ops : Array < ConnectionBulkWriteModel < TSchemaMap > > ,
8286 options : mongodb . ClientBulkWriteOptions & { ordered : false }
You can’t perform that action at this time.
0 commit comments