Sha256: 32c539bec719893f39abf46f32138c66ebcac90c29e62809f6a96f702596a78b
Contents?: true
Size: 587 Bytes
Versions: 6
Compression:
Stored size: 587 Bytes
Contents
# frozen_string_literal: true module Rails module GraphQL class Type # Handles any type of data for both input and output class Scalar::AnyScalar < Scalar desc 'The Any scalar type allows anything for both input and output.' class << self def valid_input?(value) true end def valid_output?(value) true end def to_json(value) value.to_json end def as_json(value) value.as_json end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems