Sha256: 70b8d568df7e161638afd5f4590d0c945efa5a17033f010536b3110a1cf2c65c

Contents?: true

Size: 373 Bytes

Versions: 8

Compression:

Stored size: 373 Bytes

Contents

require 'active_support/concern'
require_relative '../../../input_types/base_scalar_comparison_input_type'

monkey_patch = Module.new do
  extend ActiveSupport::Concern

  class_methods do
  protected

    def get_comparison_input_type(*)
      GraphQL::Filters::InputTypes::BaseScalarComparisonInputType[self]
    end
  end
end

GraphQL::Schema::Enum.prepend monkey_patch

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
graphql-filters-1.0.7 lib/graphql/filters/dsl/graphql/schema/enum.rb
graphql-filters-1.0.6 lib/graphql/filters/dsl/graphql/schema/enum.rb
graphql-filters-1.0.5 lib/graphql/filters/dsl/graphql/schema/enum.rb
graphql-filters-1.0.4 lib/graphql/filters/dsl/graphql/schema/enum.rb
graphql-filters-1.0.3 lib/graphql/filters/dsl/graphql/schema/enum.rb
graphql-filters-1.0.2 lib/graphql/filters/dsl/graphql/schema/enum.rb
graphql-filters-1.0.1 lib/graphql/filters/dsl/graphql/schema/enum.rb
graphql-filters-1.0.0 lib/graphql/filters/dsl/graphql/schema/enum.rb