Module: GraphQL::Stitching
- Defined in:
- lib/graphql/stitching/executor/shaper.rb,
lib/graphql/stitching.rb,
lib/graphql/stitching/plan.rb,
lib/graphql/stitching/util.rb,
lib/graphql/stitching/client.rb,
lib/graphql/stitching/planner.rb,
lib/graphql/stitching/request.rb,
lib/graphql/stitching/version.rb,
lib/graphql/stitching/composer.rb,
lib/graphql/stitching/executor.rb,
lib/graphql/stitching/supergraph.rb,
lib/graphql/stitching/planner/step.rb,
lib/graphql/stitching/type_resolver.rb,
lib/graphql/stitching/http_executable.rb,
lib/graphql/stitching/type_resolver/keys.rb,
lib/graphql/stitching/executor/root_source.rb,
lib/graphql/stitching/request/skip_include.rb,
lib/graphql/stitching/composer/base_validator.rb,
lib/graphql/stitching/type_resolver/arguments.rb,
lib/graphql/stitching/supergraph/key_directive.rb,
lib/graphql/stitching/supergraph/to_definition.rb,
lib/graphql/stitching/supergraph/source_directive.rb,
lib/graphql/stitching/composer/validate_interfaces.rb,
lib/graphql/stitching/composer/type_resolver_config.rb,
lib/graphql/stitching/executor/type_resolver_source.rb,
lib/graphql/stitching/supergraph/resolver_directive.rb,
lib/graphql/stitching/composer/validate_type_resolvers.rb
Overview
typed: false frozen_string_literal: true
Defined Under Namespace
Classes: Client, Composer, CompositionError, Executor, HttpExecutable, Plan, Planner, Request, StitchingError, Supergraph, TypeResolver, Util, ValidationError
Constant Summary collapse
- QUERY_OP =
scope name of query operations.
"query"
- MUTATION_OP =
scope name of mutation operations.
"mutation"
- SUBSCRIPTION_OP =
scope name of subscription operations.
"subscription"
- TYPENAME =
introspection typename field.
"__typename"
- EMPTY_OBJECT =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
{}.freeze
- EMPTY_ARRAY =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
[].freeze
- VERSION =
"1.5.1"
Class Attribute Summary collapse
-
.stitch_directive ⇒ Object
Name of the directive used to mark type resolvers.
Class Method Summary collapse
-
.digest(&block) ⇒ Object
Proc used to compute digests; uses SHA2 by default.
-
.stitching_directive_names ⇒ Object
Names of stitching directives to omit from the composed supergraph.
Class Attribute Details
.stitch_directive ⇒ Object
Name of the directive used to mark type resolvers.
44 45 46 |
# File 'lib/graphql/stitching.rb', line 44 def stitch_directive @stitch_directive ||= "stitch" end |
Class Method Details
.digest(&block) ⇒ Object
Proc used to compute digests; uses SHA2 by default.
34 35 36 37 38 39 40 |
# File 'lib/graphql/stitching.rb', line 34 def digest(&block) if block_given? @digest = block else @digest ||= ->(str) { Digest::SHA2.hexdigest(str) } end end |
.stitching_directive_names ⇒ Object
Names of stitching directives to omit from the composed supergraph.
50 51 52 |
# File 'lib/graphql/stitching.rb', line 50 def stitching_directive_names [stitch_directive] end |