Class: ElasticGraph::QueryRegistry::RegistryAwareQueryExecutor

Inherits:
GraphQL::QueryExecutor
  • Object
show all
Defined in:
lib/elastic_graph/query_registry/graphql_extension.rb

Instance Method Summary collapse

Constructor Details

#initialize(registry_directory:, allow_unregistered_clients:, allow_any_query_for_clients:, schema:, monotonic_clock:, logger:, slow_query_threshold_ms:) ⇒ RegistryAwareQueryExecutor

Returns a new instance of RegistryAwareQueryExecutor.



36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/elastic_graph/query_registry/graphql_extension.rb', line 36

def initialize(
  registry_directory:,
  allow_unregistered_clients:,
  allow_any_query_for_clients:,
  schema:,
  monotonic_clock:,
  logger:,
  slow_query_threshold_ms:
)
  super(
    schema: schema,
    monotonic_clock: monotonic_clock,
    logger: logger,
    slow_query_threshold_ms: slow_query_threshold_ms
  )

  @registry = Registry.build_from_directory(
    schema,
    registry_directory,
    allow_unregistered_clients: allow_unregistered_clients,
    allow_any_query_for_clients: allow_any_query_for_clients
  )
end