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/resolver.rb,
lib/graphql/stitching/supergraph.rb,
lib/graphql/stitching/planner/step.rb,
lib/graphql/stitching/resolver/keys.rb,
lib/graphql/stitching/http_executable.rb,
lib/graphql/stitching/resolver/arguments.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/composer/resolver_config.rb,
lib/graphql/stitching/executor/resolver_source.rb,
lib/graphql/stitching/supergraph/key_directive.rb,
lib/graphql/stitching/supergraph/to_definition.rb,
lib/graphql/stitching/composer/validate_resolvers.rb,
lib/graphql/stitching/supergraph/source_directive.rb,
lib/graphql/stitching/composer/validate_interfaces.rb,
lib/graphql/stitching/supergraph/resolver_directive.rb

Overview

typed: false frozen_string_literal: true

Defined Under Namespace

Classes: Client, Composer, CompositionError, Executor, HttpExecutable, Plan, Planner, Request, Resolver, StitchingError, Supergraph, 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.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.stitch_directiveObject



30
31
32
# File 'lib/graphql/stitching.rb', line 30

def stitch_directive
  @stitch_directive ||= "stitch"
end

Class Method Details

.stitching_directive_namesObject

Names of stitching directives to omit from the composed supergraph.



38
39
40
# File 'lib/graphql/stitching.rb', line 38

def stitching_directive_names
  [stitch_directive]
end