@xapp/dynamo-service
Advanced tools
Sorry, the diff of this file is not supported yet
@@ -126,3 +126,4 @@ "use strict"; | ||
| this.getKey(key); | ||
| return this.db.get(this.tableName, realKey, projection) | ||
| const realProjection = projection || this.knownKeys; | ||
| return this.db.get(this.tableName, realKey, realProjection) | ||
| .then(item => (Array.isArray(item)) ? item.map((item) => this.convertObjFromDynamo(item)) : this.convertObjFromDynamo(item)) | ||
@@ -133,3 +134,4 @@ .then(item => (Array.isArray(item)) ? item.map((item) => this.cleanseObjectOfIgnoredGetItems(item)) : this.cleanseObjectOfIgnoredGetItems(item)) | ||
| query(params, projection) { | ||
| return this.db.query(this.tableName, params, projection) | ||
| const realProjection = projection || this.knownKeys; | ||
| return this.db.query(this.tableName, params, realProjection) | ||
| .then(items => this.convertObjectsFromDynamo(items)) | ||
@@ -139,3 +141,4 @@ .then(items => this.cleanseIgnoredItemsOfDynamoObject(items)); | ||
| scan(params, projection) { | ||
| return this.db.scan(this.tableName, params, projection) | ||
| const realProjection = projection || this.knownKeys; | ||
| return this.db.scan(this.tableName, params, realProjection) | ||
| .then(items => this.convertObjectsFromDynamo(items)) | ||
@@ -142,0 +145,0 @@ .then(items => this.cleanseIgnoredItemsOfDynamoObject(items)); |
+1
-1
| { | ||
| "name": "@xapp/dynamo-service", | ||
| "version": "0.0.104", | ||
| "version": "0.0.105", | ||
| "description": "A dynamo help class which will help maintain data integrity.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
148049
0.13%3941
0.08%