Skip to content

Commit 2e3507f

Browse files
authored
Merge pull request #12 from contember/fix/generator-types-nullable
fix(generator): include nullable and relationKind in generated types.ts
2 parents e32272e + 1188149 commit 2e3507f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/bindx-generator/src/BindxGenerator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ export interface BindxSchemaEntityNames {
108108
readonly fields: {
109109
readonly [fieldName: string]:
110110
| { readonly type: 'column'; readonly columnType?: string; readonly enumName?: string }
111-
| { readonly type: 'one'; readonly entity: string }
112-
| { readonly type: 'many'; readonly entity: string }
111+
| { readonly type: 'one'; readonly entity: string; readonly nullable?: boolean }
112+
| { readonly type: 'many'; readonly entity: string; readonly relationKind?: 'oneHasMany' | 'manyHasMany'; readonly nullable?: boolean }
113113
}
114114
}
115115

0 commit comments

Comments
 (0)