lib/graphql/define/assign_enum_value.rb in graphql-1.10.0.pre3 vs lib/graphql/define/assign_enum_value.rb in graphql-1.10.0.pre4
- old
+ new
@@ -1,8 +1,8 @@
# frozen_string_literal: true
module GraphQL
module Define
- # Turn enum value configs into a {GraphQL::EnumType::EnumValue} and register it with the {GraphQL::EnumType}
+ # @api deprecated
module AssignEnumValue
def self.call(enum_type, name, desc = nil, deprecation_reason: nil, value: name, &block)
enum_value = GraphQL::EnumType::EnumValue.define(
name: name.to_s,
description: desc,