Class: Kanji::Graph::CoerceType
- Inherits:
-
Object
- Object
- Kanji::Graph::CoerceType
- Defined in:
- lib/kanji/graph/coerce_type.rb
Class Method Summary collapse
Class Method Details
.call(type) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/kanji/graph/coerce_type.rb', line 6 def self.call(type) if array_type?(type) member_type = get_member_type(type) graphql_type = get_graphql_type(member_type) graphql_type.to_list_type else get_graphql_type(type) end end |