[@types/mongoose]

Add property for the not-so-well documented Schema.prototype.query "query-helper" property.

References:
https://github.com/Automattic/mongoose/blob/master/lib/schema.js#L81
http://mongoosejs.com/docs/guide.html#query-helpers
This commit is contained in:
Felipe A. Hernandez
2018-06-20 11:31:32 +02:00
committed by GitHub
parent 7eae3c4d77
commit 1cf79822be

View File

@@ -791,6 +791,8 @@ declare module "mongoose" {
methods: any;
/** Object of currently defined statics on this schema. */
statics: any;
/** Object of currently defined query helpers on this schema. */
query: any;
/** The original object passed to the schema constructor */
obj: any;
}