Class: Ecoportal::API::GraphQL::Logic::Mutation

Inherits:
BaseQuery
  • Object
show all
Defined in:
lib/ecoportal/api/graphql/logic/mutation.rb

Defined Under Namespace

Classes: GenericInput, GenericPayload

Constant Summary

Constants inherited from BaseQuery

BaseQuery::DETAIL_ERRORS

Instance Attribute Summary

Attributes inherited from BaseQuery

#base_path, #client

Instance Method Summary collapse

Methods inherited from BaseQuery

accepted_params, #access_point, base_path, clear_accepted_params, field_name, #initialize, param_defaults, #path, slice_params

Constructor Details

This class inherits a constructor from Ecoportal::API::GraphQL::Logic::BaseQuery

Instance Method Details

#query(input:, path: self.path, **kargs, &block) ⇒ Class

Query rely that manages the different blocks.

Returns:

  • (Class)

    an object of response_class with the results hanving from path.



25
26
27
28
29
30
31
32
# File 'lib/ecoportal/api/graphql/logic/mutation.rb', line 25

def query(input:, path: self.path, **kargs, &block)
  super(
    input: as_input(input),
    path:  path,
    **kargs,
    &block
  )
end

#response_classObject



34
35
36
# File 'lib/ecoportal/api/graphql/logic/mutation.rb', line 34

def response_class
  payload_class
end