module GraphQL::Autotest::Util

Public Instance Methods

non_null?(type) click to toggle source
# File lib/graphql/autotest/util.rb, line 6
def non_null?(type)
  type.is_a?(GraphQL::Language::Nodes::NonNullType)
end
unwrap(type) click to toggle source
# File lib/graphql/autotest/util.rb, line 10
def unwrap(type)
  return type unless type.respond_to?(:of_type)

  unwrap(type.of_type)
end