Method: GraphQL::Schema::Argument#default_value
- Defined in:
- lib/graphql/schema/argument.rb
#default_value(new_default_value = NOT_CONFIGURED) ⇒ Object
Returns the value used when the client doesn't provide a value for this argument.
111 112 113 114 115 116 |
# File 'lib/graphql/schema/argument.rb', line 111 def default_value(new_default_value = NOT_CONFIGURED) if new_default_value != NOT_CONFIGURED @default_value = new_default_value end @default_value end |