@spinajs/orm-api
Advanced tools
Comparing version
@@ -85,2 +85,5 @@ "use strict"; | ||
*/ | ||
if (param.Options.noInclude === true) { | ||
return query.firstOrFail(); | ||
} | ||
if (callData.Payload.include || callData.Payload._include) { | ||
@@ -87,0 +90,0 @@ query.populate(callData.Payload.include ?? callData.Payload._include); |
@@ -35,2 +35,7 @@ import { Class } from '@spinajs/di'; | ||
/** | ||
* Sometimes we want to skip include relations eg. when we dont want to | ||
* load relations when getting another model in route | ||
*/ | ||
noInclude?: boolean; | ||
/** | ||
* | ||
@@ -37,0 +42,0 @@ * Callback on query builder before model is fetched from DB |
@@ -82,2 +82,5 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
*/ | ||
if (param.Options.noInclude === true) { | ||
return query.firstOrFail(); | ||
} | ||
if (callData.Payload.include || callData.Payload._include) { | ||
@@ -84,0 +87,0 @@ query.populate(callData.Payload.include ?? callData.Payload._include); |
@@ -35,2 +35,7 @@ import { Class } from '@spinajs/di'; | ||
/** | ||
* Sometimes we want to skip include relations eg. when we dont want to | ||
* load relations when getting another model in route | ||
*/ | ||
noInclude?: boolean; | ||
/** | ||
* | ||
@@ -37,0 +42,0 @@ * Callback on query builder before model is fetched from DB |
{ | ||
"name": "@spinajs/orm-api", | ||
"version": "2.0.367", | ||
"version": "2.0.368", | ||
"description": "Orm extensions for HTTP module", | ||
@@ -50,12 +50,12 @@ "main": "lib/cjs/index.js", | ||
"dependencies": { | ||
"@spinajs/configuration": "^2.0.367", | ||
"@spinajs/di": "^2.0.367", | ||
"@spinajs/exceptions": "^2.0.367", | ||
"@spinajs/http": "^2.0.367", | ||
"@spinajs/intl-orm": "^2.0.367", | ||
"@spinajs/log": "^2.0.367", | ||
"@spinajs/orm": "^2.0.367", | ||
"@spinajs/validation": "2.0.367", | ||
"@spinajs/rbac": "^2.0.367", | ||
"@spinajs/rbac-http": "^2.0.367", | ||
"@spinajs/configuration": "^2.0.368", | ||
"@spinajs/di": "^2.0.368", | ||
"@spinajs/exceptions": "^2.0.368", | ||
"@spinajs/http": "^2.0.368", | ||
"@spinajs/intl-orm": "^2.0.368", | ||
"@spinajs/log": "^2.0.368", | ||
"@spinajs/orm": "^2.0.368", | ||
"@spinajs/validation": "2.0.368", | ||
"@spinajs/rbac": "^2.0.368", | ||
"@spinajs/rbac-http": "^2.0.368", | ||
"lodash": "^4.17.21", | ||
@@ -65,5 +65,5 @@ "luxon": "^3.6.1" | ||
"devDependencies": { | ||
"@spinajs/orm-sqlite": "^2.0.367" | ||
"@spinajs/orm-sqlite": "^2.0.368" | ||
}, | ||
"gitHead": "b0f038aa2814b69b242ab9a277b26d73d39544d2" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
460665
0.18%3371
0.48%+ Added
- Removed
Updated
Updated
Updated
Updated
Updated
Updated
Updated
Updated
Updated