Sha256: e91028dad147171ab1b981da7c8cd148f9626db7fc183678a91b6413c4244155

Contents?: true

Size: 575 Bytes

Versions: 71

Compression:

Stored size: 575 Bytes

Contents

# frozen_string_literal: true

module GraphQL
  module Types
    module Relay
      module BaseInterface
        include GraphQL::Schema::Interface

        field_class(Types::Relay::BaseField)

        definition_methods do
          def default_relay(new_value)
            @default_relay = new_value
          end

          def default_relay?
            !!@default_relay
          end

          def to_graphql
            type_defn = super
            type_defn.default_relay = default_relay?
            type_defn
          end
        end
      end
    end
  end
end

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
graphql-1.11.10 lib/graphql/types/relay/base_interface.rb
graphql-1.11.9 lib/graphql/types/relay/base_interface.rb
graphql-1.11.8 lib/graphql/types/relay/base_interface.rb
graphql-1.11.7 lib/graphql/types/relay/base_interface.rb
graphql-1.11.6 lib/graphql/types/relay/base_interface.rb
graphql-1.8.18 lib/graphql/types/relay/base_interface.rb
graphql-1.11.5 lib/graphql/types/relay/base_interface.rb
graphql-1.11.4 lib/graphql/types/relay/base_interface.rb
graphql-1.11.3 lib/graphql/types/relay/base_interface.rb
graphql-1.11.2 lib/graphql/types/relay/base_interface.rb
graphql-1.10.14 lib/graphql/types/relay/base_interface.rb
graphql-1.11.1 lib/graphql/types/relay/base_interface.rb
graphql-1.10.13 lib/graphql/types/relay/base_interface.rb
graphql-1.11.0 lib/graphql/types/relay/base_interface.rb
graphql-1.10.12 lib/graphql/types/relay/base_interface.rb
graphql-1.9.21 lib/graphql/types/relay/base_interface.rb
graphql-1.10.11 lib/graphql/types/relay/base_interface.rb
graphql-1.9.20 lib/graphql/types/relay/base_interface.rb
graphql-1.10.10 lib/graphql/types/relay/base_interface.rb
graphql-1.10.9 lib/graphql/types/relay/base_interface.rb