lib/graphql/schema/build_from_definition.rb in graphql-1.8.2 vs lib/graphql/schema/build_from_definition.rb in graphql-1.8.3

- old
+ new

@@ -249,10 +249,10 @@ def build_directive(directive_definition, type_resolver) directive = GraphQL::Directive.define( name: directive_definition.name, description: directive_definition.description, arguments: Hash[build_directive_arguments(directive_definition, type_resolver)], - locations: directive_definition.locations.map(&:to_sym), + locations: directive_definition.locations.map { |location| location.name.to_sym }, ) directive.ast_node = directive_definition directive