Method: GraphQL::Schema::Warden#enum_values
- Defined in:
- lib/graphql/schema/warden.rb
#enum_values(enum_defn) ⇒ Array<GraphQL::EnumType::EnumValue>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns Visible members of enum_defn.
333 334 335 336 337 338 339 340 341 342 |
# File 'lib/graphql/schema/warden.rb', line 333 def enum_values(enum_defn) @visible_enum_arrays ||= read_through { |e| values = e.enum_values(@context) if values.size == 0 raise GraphQL::Schema::Enum::MissingValuesError.new(e) end values } @visible_enum_arrays[enum_defn] end |