class GraphQL::Types::JSON
argument :template_parameters, GraphQL::Types::JSON, null: false
field :template_parameters, GraphQL::Types::JSON, null: false
Use it for fields or arguments as follows:
This should be used judiciously because it subverts the GraphQL type system.
An untyped JSON scalar that maps to Ruby hashes, arrays, strings, integers, floats, booleans and nils.
def self.coerce_input(value, _context)
def self.coerce_input(value, _context) value end
def self.coerce_result(value, _context)
def self.coerce_result(value, _context) value end