Class: ElasticGraph::SchemaArtifacts::RuntimeMetadata::GraphQLResolver
- Inherits:
-
Object
- Object
- ElasticGraph::SchemaArtifacts::RuntimeMetadata::GraphQLResolver
show all
- Defined in:
- lib/elastic_graph/schema_artifacts/runtime_metadata/graphql_resolver.rb
Defined Under Namespace
Classes: InterfaceWithLookahead, InterfaceWithoutLookahead
Constant Summary
collapse
- NEEDS_LOOKAHEAD =
"needs_lookahead"
- RESOLVER_REF =
"resolver_ref"
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.from_hash(hash) ⇒ Object
32
33
34
35
36
37
|
# File 'lib/elastic_graph/schema_artifacts/runtime_metadata/graphql_resolver.rb', line 32
def self.from_hash(hash)
new(
needs_lookahead: hash.fetch(NEEDS_LOOKAHEAD),
resolver_ref: hash.fetch(RESOLVER_REF)
)
end
|
.with_lookahead_loader ⇒ Object
16
17
18
|
# File 'lib/elastic_graph/schema_artifacts/runtime_metadata/graphql_resolver.rb', line 16
def self.with_lookahead_loader
@with_lookahead_loader ||= ExtensionLoader.new(InterfaceWithLookahead)
end
|
.without_lookahead_loader ⇒ Object
Instance Method Details
#to_dumpable_hash ⇒ Object
39
40
41
42
43
44
45
|
# File 'lib/elastic_graph/schema_artifacts/runtime_metadata/graphql_resolver.rb', line 39
def to_dumpable_hash
{
NEEDS_LOOKAHEAD => needs_lookahead,
RESOLVER_REF => resolver_ref
}
end
|