1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
# frozen_string_literal: true
module GraphQL
module Introspection
class DirectiveLocationEnum < GraphQL::Schema::Enum
graphql_name "__DirectiveLocation"
description "A Directive can be adjacent to many parts of the GraphQL language, "\
"a __DirectiveLocation describes one such possible adjacencies."
GraphQL::Schema::Directive::LOCATIONS.each do |location|
value(location.to_s, GraphQL::Schema::Directive::LOCATION_DESCRIPTIONS[location], value: location)
end
introspection true
end
end
end
|