Sha256: b42b7121cdccb42bf079b19c6703a4171eac9f3bcbb0dc29e795d4cc917be9e0

Contents?: true

Size: 573 Bytes

Versions: 13

Compression:

Stored size: 573 Bytes

Contents

# frozen_string_literal: true

module GraphQL
  module Stitching
    # Defines a boundary query that provides direct access to an entity type.
    Boundary = Struct.new(
      :location,
      :type_name,
      :key,
      :field,
      :arg,
      :list,
      :federation,
      keyword_init: true
    ) do
      def as_json
        {
          location: location,
          type_name: type_name,
          key: key,
          field: field,
          arg: arg,
          list: list,
          federation: federation,
        }.tap(&:compact!)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
graphql-stitching-1.2.5 lib/graphql/stitching/boundary.rb
graphql-stitching-1.2.4 lib/graphql/stitching/boundary.rb
graphql-stitching-1.2.3 lib/graphql/stitching/boundary.rb
graphql-stitching-1.2.2 lib/graphql/stitching/boundary.rb
graphql-stitching-1.2.1 lib/graphql/stitching/boundary.rb
graphql-stitching-1.2.0 lib/graphql/stitching/boundary.rb
graphql-stitching-1.1.1 lib/graphql/stitching/boundary.rb
graphql-stitching-1.1.0 lib/graphql/stitching/boundary.rb
graphql-stitching-1.0.6 lib/graphql/stitching/boundary.rb
graphql-stitching-1.0.5 lib/graphql/stitching/boundary.rb
graphql-stitching-1.0.4 lib/graphql/stitching/boundary.rb
graphql-stitching-1.0.3 lib/graphql/stitching/boundary.rb
graphql-stitching-1.0.2 lib/graphql/stitching/boundary.rb