Skip to content

Commit 4d97ae1

Browse files
authored
fix: aggregate type (#459)
1 parent 1a7641a commit 4d97ae1

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

src/models/model-definitions.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,14 @@ export type ModelDefinition = {
144144
kind: 'object';
145145
fields: readonly ObjectFieldDefinition[];
146146
}
147-
| ({
147+
| {
148148
kind: 'entity';
149149
root?: boolean;
150150
parent?: string;
151151
interfaces?: readonly string[];
152152
queriable?: boolean;
153153
listQueriable?: boolean | { args?: readonly Field[] };
154+
aggregatable?: boolean;
154155
creatable?:
155156
| boolean
156157
| {
@@ -189,13 +190,7 @@ export type ModelDefinition = {
189190
// temporary fields for the generation of migrations
190191
deleted?: true;
191192
oldName?: string;
192-
} & (
193-
| { aggregatable?: false }
194-
| {
195-
aggregatable: true;
196-
listQueriable: true | { args?: readonly Field[] };
197-
}
198-
))
193+
}
199194
);
200195

201196
export type ConstraintDefinition =

0 commit comments

Comments
 (0)