Method: GraphQL::Language::DocumentFromSchemaDefinition#build_enum_value_node

Defined in:
lib/graphql/language/document_from_schema_definition.rb

#build_enum_value_node(enum_value) ⇒ Object

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.



115
116
117
118
119
120
121
# File 'lib/graphql/language/document_from_schema_definition.rb', line 115

def build_enum_value_node(enum_value)
  GraphQL::Language::Nodes::EnumValueDefinition.new(
    name: enum_value.graphql_name,
    description: enum_value.description,
    directives: directives(enum_value),
  )
end