Class: Ibrain::Extentions::DefaultValue
- Inherits:
-
GraphQL::Schema::FieldExtension
- Object
- GraphQL::Schema::FieldExtension
- Ibrain::Extentions::DefaultValue
- Defined in:
- app/graphql/ibrain/extentions/default_value.rb
Instance Method Summary collapse
Instance Method Details
#after_resolve(value:, **_rest) ⇒ Object
6 7 8 9 10 11 12 |
# File 'app/graphql/ibrain/extentions/default_value.rb', line 6 def after_resolve(value:, **_rest) if value.nil? [:default_value] else value end end |