Class: GraphQL::TypeDefiner

Inherits:
Object
  • Object
show all
Defined in:
lib/graph_ql/types/type_definer.rb

Constant Summary collapse

TYPES =
{
  Int:     GraphQL::INT_TYPE,
  String:  GraphQL::STRING_TYPE,
  Float:   GraphQL::FLOAT_TYPE,
  Boolean: GraphQL::BOOLEAN_TYPE,
}

Instance Method Summary collapse

Instance Method Details

#[](type) ⇒ Object



13
14
15
# File 'lib/graph_ql/types/type_definer.rb', line 13

def [](type)
  GraphQL::ListType.new(of_type: type)
end