From 78f1ca42e5f365d251a3ae91311bf4a1729a2b1d Mon Sep 17 00:00:00 2001 From: Tim Kendrick Date: Fri, 31 Oct 2025 16:19:27 +0000 Subject: [PATCH] fix: Ensure non-null collection schema type --- src/graphql.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/graphql.rs b/src/graphql.rs index e1594f8a..1d07eeb1 100644 --- a/src/graphql.rs +++ b/src/graphql.rs @@ -1234,7 +1234,9 @@ impl ___Type for QueryType { let collection_entrypoint = __Field { name_: format!("{}Collection", lowercase_first_letter(table_base_type_name)), - type_: __Type::Connection(connection_type), + type_: __Type::NonNull(NonNullType { + type_: Box::new(__Type::Connection(connection_type)), + }), args: connection_args, description: Some(format!( "A pagable collection of type `{}`",