Class: Parse::GraphQL::Types::JSON

Inherits:
GraphQL::Schema::Scalar
  • Object
show all
Defined in:
lib/parse/graphql/scalars.rb

Overview

Fallback for :array / :object columns with no element type. Emits a warning at codegen time when used so authors know to narrow the type if possible. Subscribers needing typed list elements should declare belongs_to / has_many instead of a raw property :foo, :array.

Class Method Summary collapse

Class Method Details

.coerce_input(value, _ctx) ⇒ Object



43
44
45
# File 'lib/parse/graphql/scalars.rb', line 43

def self.coerce_input(value, _ctx)
  value
end

.coerce_result(value, _ctx) ⇒ Object



47
48
49
# File 'lib/parse/graphql/scalars.rb', line 47

def self.coerce_result(value, _ctx)
  value
end