Class: GraphQL::Argument
- Inherits:
-
Object
- Object
- GraphQL::Argument
- Includes:
- Define::InstanceDefinable
- Defined in:
- lib/graphql/argument.rb
Overview
Used for defined arguments (Field, InputObjectType)
#name must be a String.
Instance Attribute Summary collapse
-
#name ⇒ String
The name of this argument on its Field or InputObjectType.
Instance Method Summary collapse
-
#type ⇒ GraphQL::BaseType
The input type for this argument.
- #type=(new_input_type) ⇒ Object
Methods included from Define::InstanceDefinable
#definition_proc=, included, #metadata
Instance Attribute Details
#name ⇒ String
Returns The name of this argument on its Field or InputObjectType.
|
# File 'lib/graphql/argument.rb', line 22
|
Instance Method Details
#type ⇒ GraphQL::BaseType
Returns the input type for this argument.
33 34 35 36 37 38 |
# File 'lib/graphql/argument.rb', line 33 def type @clean_type ||= begin ensure_defined GraphQL::BaseType.(@dirty_type) end end |
#type=(new_input_type) ⇒ Object
26 27 28 29 30 |
# File 'lib/graphql/argument.rb', line 26 def type=(new_input_type) ensure_defined @clean_type = nil @dirty_type = new_input_type end |