Class: GraphQL::TypeDefiner

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/graph_ql/definition_helpers/type_definer.rb

Instance Method Summary collapse

Instance Method Details

#[](type) ⇒ Object



10
11
12
# File 'lib/graph_ql/definition_helpers/type_definer.rb', line 10

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

#BooleanObject



7
# File 'lib/graph_ql/definition_helpers/type_definer.rb', line 7

def Boolean;  GraphQL::BOOLEAN_TYPE;  end

#FloatObject



6
# File 'lib/graph_ql/definition_helpers/type_definer.rb', line 6

def Float;    GraphQL::FLOAT_TYPE;    end

#IDObject



8
# File 'lib/graph_ql/definition_helpers/type_definer.rb', line 8

def ID;       GraphQL::ID_TYPE;       end

#IntObject



4
# File 'lib/graph_ql/definition_helpers/type_definer.rb', line 4

def Int;      GraphQL::INT_TYPE;      end

#StringObject



5
# File 'lib/graph_ql/definition_helpers/type_definer.rb', line 5

def String;   GraphQL::STRING_TYPE;   end