Class: Daidan::BaseMutation
- Inherits:
-
GraphQL::Schema::Mutation
- Object
- GraphQL::Schema::Mutation
- Daidan::BaseMutation
- Defined in:
- lib/daidan/graphql/mutations/base_mutation.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#resolve(**args) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/daidan/graphql/mutations/base_mutation.rb', line 3 def resolve(**args) call_hook(:before_mutation, **args) result = execute_mutation(**args) call_hook(:after_mutation, **args) result rescue StandardError => e handle_error(e) end |