Skip to content

Commit caa031c

Browse files
committed
fix: sort order must be non null
1 parent 8b239fb commit caa031c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/fixtures/expanded.gql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ input DateTimeFilterInput {
315315
}
316316

317317
input SortOrderInput {
318-
sort: SortOrder
318+
sort: SortOrder!
319319
nulls: NullsOrder
320320
}
321321

src/macros/list/fixtures/expanded.gql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ input DateTimeFilterInput {
195195
}
196196

197197
input SortOrderInput {
198-
sort: SortOrder
198+
sort: SortOrder!
199199
nulls: NullsOrder
200200
}
201201

src/macros/list/globals.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const types: Record<string, ObjectType> = invoke(() => {
105105
new ObjectType({
106106
name,
107107
fields: {
108-
sort: { type: SortOrder },
108+
sort: { type: new NonNull(SortOrder) },
109109
nulls: { type: new Scalar({ name: 'NullsOrder' }) },
110110
},
111111
}),

0 commit comments

Comments
 (0)