Merge pull request #13163 from bertolo1988/master

SchemaOptions versionKey type can now accept booleans
This commit is contained in:
Horiuchi_H
2016-12-08 11:03:31 +09:00
committed by GitHub
+1 -1
View File
@@ -717,7 +717,7 @@ declare module "mongoose" {
/** defaults to true */
validateBeforeSave?: boolean;
/** defaults to "__v" */
versionKey?: string;
versionKey?: string|boolean;
/**
* skipVersioning allows excluding paths from
* versioning (the internal revision will not be