class Dry::GraphQL::Types::JSON
JSON
type, needed for Dry::Types::Hash currently
Public Class Methods
coerce_input(str, _ctx)
click to toggle source
# File lib/dry/graphql/types.rb, line 10 def self.coerce_input(str, _ctx) JSON.parse(str) end
coerce_result(obj, _ctx)
click to toggle source
# File lib/dry/graphql/types.rb, line 14 def self.coerce_result(obj, _ctx) JSON.dump(obj) end