Sha256: 08d706bed5e193c4de70b21638dc19fd4db137b307a31930a592f921c8bc864e

Contents?: true

Size: 340 Bytes

Versions: 1

Compression:

Stored size: 340 Bytes

Contents

# frozen_string_literal: true

TimestampableInterface = GraphQL::InterfaceType.define do
  name "Timestampable"

  description "An object that have timestamps fields (created_at and updated_at)."

  field :createdAt, !GraphTypes::DateTimeType, property: :created_at

  field :updatedAt, !GraphTypes::DateTimeType, property: :updated_at
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
graph_types-0.2.0 lib/graph_types/interfaces/timestampable_interface.rb