There was an error while loading. Please reload this page.
2 parents c03731e + 84de293 commit ab86175Copy full SHA for ab86175
1 file changed
lib/tapioca/dsl/helpers/graphql_type_helper.rb
@@ -82,7 +82,7 @@ def type_for(type, ignore_nilable_wrapper: false, prepare_method: nil)
82
83
# Wrap as non-nilable for required arguments. `coerce_input` supports both
84
# required and optional; optional arguments are re-wrapped below based on `type.non_null?`
85
- valid_return_type?(return_type) ? RBIHelper.as_non_nilable_type(return_type.to_s) : "T.untyped"
+ valid_return_type?(return_type) ? (T::Utils.unwrap_nilable(return_type) || return_type).to_s : "T.untyped"
86
when GraphQL::Schema::InputObject.singleton_class
87
type_for_constant(unwrapped_type)
88
when Module
0 commit comments