Sha256: 922dac7e39860b69f50444fd6e2fbe9b73d769ac3174c5bc8a9b97bdf892192a

Contents?: true

Size: 450 Bytes

Versions: 23

Compression:

Stored size: 450 Bytes

Contents

# frozen_string_literal: true

module GraphQL
  module Execution
    class Interpreter
      # Wrapper for raw values
      class RawValue
        def initialize(obj = nil)
          @object = obj
        end

        def resolve
          @object
        end
      end

      # Allows to return "raw" value from the resolver
      module HandlesRawValue
        def raw_value(obj)
          RawValue.new(obj)
        end
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
graphql-1.11.10 lib/graphql/execution/interpreter/handles_raw_value.rb
graphql-1.11.9 lib/graphql/execution/interpreter/handles_raw_value.rb
graphql-1.11.8 lib/graphql/execution/interpreter/handles_raw_value.rb
graphql-1.11.7 lib/graphql/execution/interpreter/handles_raw_value.rb
graphql-1.11.6 lib/graphql/execution/interpreter/handles_raw_value.rb
graphql-1.11.5 lib/graphql/execution/interpreter/handles_raw_value.rb
graphql-1.11.4 lib/graphql/execution/interpreter/handles_raw_value.rb
graphql-1.11.3 lib/graphql/execution/interpreter/handles_raw_value.rb
graphql-1.11.2 lib/graphql/execution/interpreter/handles_raw_value.rb
graphql-1.10.14 lib/graphql/execution/interpreter/handles_raw_value.rb
graphql-1.11.1 lib/graphql/execution/interpreter/handles_raw_value.rb
graphql-1.10.13 lib/graphql/execution/interpreter/handles_raw_value.rb
graphql-1.11.0 lib/graphql/execution/interpreter/handles_raw_value.rb
graphql-1.10.12 lib/graphql/execution/interpreter/handles_raw_value.rb
graphql-1.10.11 lib/graphql/execution/interpreter/handles_raw_value.rb
graphql-1.10.10 lib/graphql/execution/interpreter/handles_raw_value.rb
graphql-1.10.9 lib/graphql/execution/interpreter/handles_raw_value.rb
graphql-1.10.8 lib/graphql/execution/interpreter/handles_raw_value.rb
graphql-1.10.7 lib/graphql/execution/interpreter/handles_raw_value.rb
graphql-1.10.6 lib/graphql/execution/interpreter/handles_raw_value.rb