mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 19:09:18 +08:00
[mongoose] add unwind method with new params type
In mongodb 3.2, the unwind operator can with a object params.
This commit is contained in:
5
mongoose/index.d.ts
vendored
5
mongoose/index.d.ts
vendored
@@ -2163,6 +2163,11 @@ declare module "mongoose" {
|
||||
* @param fields the field(s) to unwind
|
||||
*/
|
||||
unwind(...fields: string[]): this;
|
||||
/**
|
||||
* Appends new custom $unwind operator(s) to this aggregate pipeline
|
||||
* new in mongodb 3.2
|
||||
*/
|
||||
unwind(...opts: { path: string, includeArrayIndex?: string, preserveNullAndEmptyArrays?: boolean }[]): this;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user