Comparing version 1.0.220 to 1.0.221
@@ -39,3 +39,5 @@ "use strict"; | ||
const entity = statement.$create_table; | ||
const edges = (0, schema_helpers_1.get_all_edges)(entity, final_schema); | ||
// remove self-referencing foreign keys, since they dont affect insertion order | ||
// and would make this more complicated if included | ||
const edges = (0, schema_helpers_1.get_all_edges)(entity, final_schema).filter(el => el.from_entity !== el.to_entity); | ||
// we set all foreign key and primary keys to the value 1, since this will result in the strongest | ||
@@ -42,0 +44,0 @@ // ordering when passed to the mutation planner |
{ | ||
"name": "orma", | ||
"version": "1.0.220", | ||
"version": "1.0.221", | ||
"description": "A declarative relational syncronous orm", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -89,3 +89,7 @@ import { get_difference } from '../helpers/helpers' | ||
const entity = statement.$create_table | ||
const edges = get_all_edges(entity, final_schema) | ||
// remove self-referencing foreign keys, since they dont affect insertion order | ||
// and would make this more complicated if included | ||
const edges = get_all_edges(entity, final_schema).filter( | ||
el => el.from_entity !== el.to_entity | ||
) | ||
@@ -92,0 +96,0 @@ // we set all foreign key and primary keys to the value 1, since this will result in the strongest |
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
1583555
38618