Sha256: 9d89be625337a2c666e7b8a9b4edd254d4a7ef9aa26a3dbbed1f49c8fee93f01
Contents?: true
Size: 716 Bytes
Versions: 204
Compression:
Stored size: 716 Bytes
Contents
# frozen_string_literal: true module GraphQL module Types # 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 # class JSON < GraphQL::Schema::Scalar description "Represents untyped JSON" def self.coerce_input(value, _context) value end def self.coerce_result(value, _context) value end end end end
Version data entries
204 entries across 204 versions & 2 rubygems