Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
graphql / lib / graphql / introspection / base_object.rb
Size: Mime:
# 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)
        super
      end
    end
  end
end