Merge pull request #21176 from dhritzkiv/patch-3

SchemaOptions.safe can also be an object
This commit is contained in:
Ron Buckton
2017-11-03 21:33:57 -07:00
committed by GitHub

View File

@@ -727,7 +727,7 @@ declare module "mongoose" {
minimize?: boolean;
read?: string;
/** defaults to true. */
safe?: boolean;
safe?: boolean | { w?: number | string; wtimeout?: number; j?: boolean };
/** defaults to null */
shardKey?: boolean;
/** defaults to true */