simple-graphql
Advanced tools
Comparing version 3.2.4 to 3.2.5
@@ -107,2 +107,3 @@ "use strict"; | ||
let onDelete = 'RESTRICT'; | ||
let constraints = true; | ||
if (options && | ||
@@ -114,2 +115,8 @@ options.$type && | ||
} | ||
if (options.columnOptions.constraints !== | ||
undefined) { | ||
constraints = options.columnOptions | ||
.constraints; | ||
onDelete = undefined; | ||
} | ||
} | ||
@@ -126,3 +133,3 @@ if (options && | ||
onDelete: onDelete, | ||
constraints: lodash_1.default.get(options, 'columnOptions.constraints', true) | ||
constraints: constraints | ||
} | ||
@@ -138,3 +145,3 @@ }); | ||
onDelete: onDelete, | ||
constraints: lodash_1.default.get(options, 'columnOptions.constraints', true) | ||
constraints: constraints | ||
} | ||
@@ -141,0 +148,0 @@ }); |
{ | ||
"name": "simple-graphql", | ||
"version": "3.2.4", | ||
"version": "3.2.5", | ||
"description": "The simple way to generates GraphQL schemas and Sequelize models from your models definition.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
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
336242
4911