Sha256: 721d49777f77046af609aabe559e9375b3c7e99287c23a0589fc9cafc3c55c77
Contents?: true
Size: 705 Bytes
Versions: 128
Compression:
Stored size: 705 Bytes
Contents
# frozen_string_literal: true module GraphQL module Introspection class EnumValueType < Introspection::BaseObject graphql_name "__EnumValue" description "One possible value for a given Enum. Enum values are unique values, not a "\ "placeholder for a string or numeric value. However an Enum value is returned in "\ "a JSON response as a string." field :name, String, null: false field :description, String field :is_deprecated, Boolean, null: false field :deprecation_reason, String def name object.graphql_name end def is_deprecated !!@object.deprecation_reason end end end end
Version data entries
128 entries across 128 versions & 2 rubygems