Class: ElasticGraph::QueryInterceptor::Config::InterceptorInterface

Inherits:
Object
  • Object
show all
Defined in:
lib/elastic_graph/query_interceptor/config.rb

Overview

Defines the interceptor interface, which our extension loader will validate against.

Instance Method Summary collapse

Constructor Details

#initialize(elasticgraph_graphql:, config:) ⇒ InterceptorInterface

Returns a new instance of InterceptorInterface.



49
50
51
# File 'lib/elastic_graph/query_interceptor/config.rb', line 49

def initialize(elasticgraph_graphql:, config:)
  # must be defined, but nothing to do
end

Instance Method Details

#intercept(query, field:, args:, http_request:, context:) ⇒ Object



53
54
55
56
57
# File 'lib/elastic_graph/query_interceptor/config.rb', line 53

def intercept(query, field:, args:, http_request:, context:)
  # :nocov: -- must return a query to satisfy Steep type checking but never called
  query
  # :nocov:
end