Skip to content

Commit 78f1ca4

Browse files
author
Tim Kendrick
committed
fix: Ensure non-null collection schema type
1 parent 9cf4882 commit 78f1ca4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/graphql.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,9 @@ impl ___Type for QueryType {
12341234

12351235
let collection_entrypoint = __Field {
12361236
name_: format!("{}Collection", lowercase_first_letter(table_base_type_name)),
1237-
type_: __Type::Connection(connection_type),
1237+
type_: __Type::NonNull(NonNullType {
1238+
type_: Box::new(__Type::Connection(connection_type)),
1239+
}),
12381240
args: connection_args,
12391241
description: Some(format!(
12401242
"A pagable collection of type `{}`",

0 commit comments

Comments
 (0)