class GraphQL::Define::TypeDefiner

Passed into initialization blocks, eg {ObjectType#initialize}, {Field#initialize}
Some conveniences for definining return & argument types.

def Boolean; GraphQL::BOOLEAN_TYPE; end

def Boolean;  GraphQL::BOOLEAN_TYPE;  end

def Float; GraphQL::FLOAT_TYPE; end

def Float;    GraphQL::FLOAT_TYPE;    end

def ID; GraphQL::ID_TYPE; end

def ID;       GraphQL::ID_TYPE;       end

def Int; GraphQL::INT_TYPE; end

rubocop:disable Style/MethodName
def Int;      GraphQL::INT_TYPE;      end

def String; GraphQL::STRING_TYPE; end

def String;   GraphQL::STRING_TYPE;   end

def [](type)

Returns:
  • (GraphQL::ListType) - A ListType wrapping `type`

Parameters:
  • type (Type) -- A type to be wrapped in a ListType

Other tags:
    Example: making a list type -
def [](type)
  type.to_list_type
end