class GraphQL::Types::JSON
An untyped JSON scalar that maps to Ruby hashes, arrays, strings, integers, floats, booleans and nils. This should be used judiciously because it subverts the GraphQL type system.
Use it for fields or arguments as follows:
field :template_parameters, GraphQL::Types::JSON, null: false argument :template_parameters, GraphQL::Types::JSON, null: false
Public Class Methods
(untyped value, GraphQL::Query::Context _context) → untyped
Source
# File lib/graphql/types/json.rb, line 19 def self.coerce_input(value, _context) value end
(untyped value, GraphQL::Query::Context _context) → untyped
Source
# File lib/graphql/types/json.rb, line 24 def self.coerce_result(value, _context) value end