@mongez/mongodb
Advanced tools
Comparing version 1.0.69 to 1.0.70
@@ -139,2 +139,6 @@ import { ObjectId } from "mongodb"; | ||
/** | ||
* Get initial value of the given column | ||
*/ | ||
getInitial(column: keyof Schema, defaultValue?: any): any; | ||
/** | ||
* Get value of the given column | ||
@@ -141,0 +145,0 @@ */ |
@@ -209,2 +209,8 @@ "use strict"; | ||
/** | ||
* Get initial value of the given column | ||
*/ | ||
getInitial(column, defaultValue) { | ||
return reinforcements.get(this.initialData, column, defaultValue); | ||
} | ||
/** | ||
* Get value of the given column | ||
@@ -211,0 +217,0 @@ */ |
@@ -139,2 +139,6 @@ import { ObjectId } from "mongodb"; | ||
/** | ||
* Get initial value of the given column | ||
*/ | ||
getInitial(column: keyof Schema, defaultValue?: any): any; | ||
/** | ||
* Get value of the given column | ||
@@ -141,0 +145,0 @@ */ |
@@ -210,2 +210,8 @@ import { | ||
/** | ||
* Get initial value of the given column | ||
*/ | ||
getInitial(column, defaultValue) { | ||
return get(this.initialData, column, defaultValue); | ||
} | ||
/** | ||
* Get value of the given column | ||
@@ -212,0 +218,0 @@ */ |
{ | ||
"name": "@mongez/mongodb", | ||
"version": "1.0.69", | ||
"version": "1.0.70", | ||
"description": "Powerful Mongodb Database Manager for Node Js", | ||
@@ -5,0 +5,0 @@ "main": "./cjs/index.js", |
407089
15420
21