Sha256: c4848ecf085f10d436e229972b56f76a2ba998b28df5fb0f71bdfb4b6a32b573
Contents?: true
Size: 320 Bytes
Versions: 12
Compression:
Stored size: 320 Bytes
Contents
# frozen_string_literal: true module Decidim module Core DateTimeType = GraphQL::ScalarType.define do name "DateTime" description "An ISO8601 date with time" coerce_input ->(value, _ctx) { Time.iso8601(value) } coerce_result ->(value, _ctx) { value.to_datetime.iso8601 } end end end
Version data entries
12 entries across 12 versions & 1 rubygems