versionKey type

This commit is contained in:
Tiago Bértolo
2016-12-07 23:24:33 +00:00
committed by GitHub
parent 0b390b15ef
commit eb935a2994
+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