Sha256: 71c0d0c250b2bb347b40663a38c406a0be96bab8357c4bd78e0adf731d45522c

Contents?: true

Size: 355 Bytes

Versions: 8

Compression:

Stored size: 355 Bytes

Contents

# frozen_string_literal: true
module GraphQL
  module Introspection
    class BaseObject < GraphQL::Schema::Object
      def self.field(*args, **kwargs, &block)
        kwargs[:introspection] = true
        super(*args, **kwargs, &block)
      end

      def self.inherited(child_class)
        child_class.introspection(true)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
graphql-1.8.0.pre10 lib/graphql/introspection/base_object.rb
graphql-1.8.0.pre9 lib/graphql/introspection/base_object.rb
graphql-1.8.0.pre8 lib/graphql/introspection/base_object.rb
graphql-1.8.0.pre7 lib/graphql/introspection/base_object.rb
graphql-1.8.0.pre6 lib/graphql/introspection/base_object.rb
graphql-1.8.0.pre5 lib/graphql/introspection/base_object.rb
graphql-1.8.0.pre4 lib/graphql/introspection/base_object.rb
graphql-1.8.0.pre3 lib/graphql/introspection/base_object.rb