Comparing version 0.1.5-alpha.10 to 0.1.5-alpha.11
module.exports = { | ||
...require('./And'), | ||
...require('./ComparisonOperator'), | ||
...require('./Count'), | ||
...require('./DatabasePool'), | ||
@@ -5,0 +6,0 @@ ...require('./Delete'), |
const { And } = require('./And') | ||
const { Count } = require('./Count') | ||
const { getModelName } = require('../models/ModelRegistry') | ||
@@ -7,3 +8,2 @@ const { ObjectNotFound } = require('../errors') | ||
const { QueryColumn } = require('./QueryColumn') | ||
const { QueryFunc } = require('./QueryFunc') | ||
const { QueryIdentifier } = require('./QueryIdentifier') | ||
@@ -108,4 +108,3 @@ const { QueryJoin } = require('./QueryJoin') | ||
'selection', | ||
new QueryFunc({ | ||
name: 'COUNT', | ||
new Count({ | ||
args: [new QueryAllRecords()], | ||
@@ -112,0 +111,0 @@ alias: '__djorm_cnt' |
@@ -26,3 +26,5 @@ const { ModelError } = require('../errors') | ||
for (const [, field] of modelRelations) { | ||
field.parentModel = modelName | ||
if (!field.parentModel) { | ||
field.parentModel = modelName | ||
} | ||
relationships[getRelationRefName(field.model, field.relatedName)] = field | ||
@@ -29,0 +31,0 @@ } |
{ | ||
"name": "djorm", | ||
"version": "0.1.5-alpha.10", | ||
"version": "0.1.5-alpha.11", | ||
"description": "Django like ORM framework", | ||
@@ -35,3 +35,3 @@ "author": "Pavel Žák <pavel@zak.global>", | ||
}, | ||
"gitHead": "b062395336964f9ee176f6ccadb0ac27f2b0f521" | ||
"gitHead": "30ac54fa76fcb4ddb229f872d285e7ab3f004c4c" | ||
} |
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
49603
56
1761