Add Query.getOptions()

This commit is contained in:
Ashwin Ramaswami
2018-12-31 07:45:58 -05:00
committed by GitHub
parent 52357dc4ca
commit d4b93e7a84
+7 -1
View File
@@ -1894,7 +1894,13 @@ declare module "mongoose" {
* is an Array. See the examples.
*/
geometry(object: { type: string, coordinates: any[] }): this;
/**
* Returns the current query options as a JSON object.
* @returns current query options
*/
getOptions(): any;
/**
* Returns the current query conditions as a JSON object.
* @returns current query conditions