Module: GraphQL::Compatibility::ExecutionSpecification::SpecificationSchema::TestMiddleware

Defined in:
lib/graphql/compatibility/execution_specification/specification_schema.rb

Class Method Summary collapse

Class Method Details

.call(parent_type, parent_object, field_definition, field_args, query_context, next_middleware) ⇒ Object

TODO: Once deprecated next_middleware argument becomes unsupported, add & to the argument



53
54
55
56
# File 'lib/graphql/compatibility/execution_specification/specification_schema.rb', line 53

def self.call(parent_type, parent_object, field_definition, field_args, query_context, next_middleware)
  query_context[:middleware_log] && query_context[:middleware_log] << field_definition.name
  next_middleware.call
end