Merge pull request #11656 from jakubskopal/mongoose-versionkey

changed versionKey in Schema spec to string
This commit is contained in:
Horiuchi_H
2016-10-02 23:02:08 +09:00
committed by GitHub
+1 -1
View File
@@ -696,7 +696,7 @@ declare module "mongoose" {
/** defaults to true */
validateBeforeSave?: boolean;
/** defaults to "__v" */
versionKey?: boolean;
versionKey?: string;
/**
* skipVersioning allows excluding paths from
* versioning (the internal revision will not be