Class: GraphQL::Define::TypeDefiner
- Inherits:
-
Object
- Object
- GraphQL::Define::TypeDefiner
- Includes:
- Singleton
- Defined in:
- lib/graphql/define/type_definer.rb
Overview
Some conveniences for definining return & argument types.
Passed into initialization blocks, eg ObjectType#initialize, Field#initialize
Instance Method Summary collapse
-
#[](type) ⇒ GraphQL::ListType
Make a ListType which wraps the input type.
- #Boolean ⇒ Object
- #Float ⇒ Object
- #ID ⇒ Object
-
#Int ⇒ Object
rubocop:disable Naming/MethodName.
- #String ⇒ Object
Instance Method Details
#[](type) ⇒ GraphQL::ListType
Make a ListType which wraps the input type
26 27 28 |
# File 'lib/graphql/define/type_definer.rb', line 26 def [](type) type.to_list_type end |
#Boolean ⇒ Object
13 |
# File 'lib/graphql/define/type_definer.rb', line 13 def Boolean; GraphQL::DEPRECATED_BOOLEAN_TYPE; end |
#Float ⇒ Object
12 |
# File 'lib/graphql/define/type_definer.rb', line 12 def Float; GraphQL::DEPRECATED_FLOAT_TYPE; end |
#ID ⇒ Object
14 |
# File 'lib/graphql/define/type_definer.rb', line 14 def ID; GraphQL::DEPRECATED_ID_TYPE; end |
#Int ⇒ Object
rubocop:disable Naming/MethodName
10 |
# File 'lib/graphql/define/type_definer.rb', line 10 def Int; GraphQL::DEPRECATED_INT_TYPE; end |
#String ⇒ Object
11 |
# File 'lib/graphql/define/type_definer.rb', line 11 def String; GraphQL::DEPRECATED_STRING_TYPE; end |