@compas/code-gen
Advanced tools
Comparing version 0.16.3 to 0.16.4
{ | ||
"name": "@compas/code-gen", | ||
"version": "0.16.3", | ||
"version": "0.16.4", | ||
"description": "Generate various boring parts of your server", | ||
@@ -22,3 +22,3 @@ "exports": { | ||
"dependencies": { | ||
"@compas/stdlib": "0.16.3" | ||
"@compas/stdlib": "0.16.4" | ||
}, | ||
@@ -25,0 +25,0 @@ "author": { |
@@ -175,4 +175,10 @@ import { | ||
if (relation.subType === "oneToOneReverse" && relation.isOptional) { | ||
// oneToMany's are never optional, since they then return an empty array. A oneToOne is | ||
// only optional if the owning side says so. | ||
joinedExpansionType.optional(); | ||
} | ||
expansionType.keys[relationInfo.virtualKeyNameInverse] = | ||
joinedExpansionType.optional().build(); | ||
joinedExpansionType.build(); | ||
} | ||
@@ -434,3 +440,3 @@ | ||
> | ||
: never; | ||
: DefinitionType extends undefined ? undefined : never; | ||
@@ -437,0 +443,0 @@ /// End Query builder resolver types |
Sorry, the diff of this file is too big to display
1458724
43491
+ Added@compas/stdlib@0.16.4(transitive)
+ Added@types/node@22.13.9(transitive)
- Removed@compas/stdlib@0.16.3(transitive)
- Removed@types/node@22.13.1(transitive)
Updated@compas/stdlib@0.16.4