djorm-db-gcp-datastore
Advanced tools
Comparing version 0.1.5-alpha.12 to 0.1.5-alpha.13
@@ -30,6 +30,11 @@ const { ComparisonOperator } = require('djorm/db/ComparisonOperator') | ||
formatValue (qs, data) { | ||
const excludeFromIndexes = qs.props.model | ||
.getDatabaseFields() | ||
.filter(([key, field]) => !field.indexable) | ||
.map(([key]) => key) | ||
return { | ||
key: this.formatKey(qs.props.model, data[qs.props.model.pkName]), | ||
data, | ||
excludeLargeProperties: true | ||
excludeLargeProperties: true, | ||
excludeFromIndexes | ||
} | ||
@@ -36,0 +41,0 @@ } |
@@ -28,14 +28,4 @@ const { DatastoreFormatterBase } = require('./DatastoreFormatterBase') | ||
} | ||
formatValue = (qs, data) => ({ | ||
key: this.formatKey(qs.props.model, data[qs.model.pkName]), | ||
data | ||
}) | ||
formatValues = qs => | ||
qs.props.values instanceof Array | ||
? qs.props.values.map(data => this.formatValue(qs, data)) | ||
: [this.formatValue(qs, qs.props.values)] | ||
} | ||
module.exports = { DatastoreInsertFormatter } |
{ | ||
"name": "djorm-db-gcp-datastore", | ||
"version": "0.1.5-alpha.12", | ||
"version": "0.1.5-alpha.13", | ||
"description": "Datastore bindings for djorm", | ||
@@ -31,3 +31,3 @@ "author": "Pavel Žák <pavel@zak.global>", | ||
}, | ||
"gitHead": "911855f34a897df157f6ac549baf825d48559de5" | ||
"gitHead": "ed93c1475e18b00733f9e62b2c6006f6c08c12c5" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11424
291