Class: ElasticGraph::QueryInterceptor::Config::InterceptorInterface
- Inherits:
-
Object
- Object
- ElasticGraph::QueryInterceptor::Config::InterceptorInterface
- 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
-
#initialize(elasticgraph_graphql:, config:) ⇒ InterceptorInterface
constructor
A new instance of InterceptorInterface.
- #intercept(query, field:, args:, http_request:, context:) ⇒ Object
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 |