Module: GraphQL::StaticValidation::UniqueDirectivesPerLocation
- Defined in:
- lib/graphql/static_validation/rules/unique_directives_per_location.rb
Constant Summary collapse
- DIRECTIVE_NODE_HOOKS =
[ :on_fragment_definition, :on_fragment_spread, :on_inline_fragment, :on_operation_definition, :on_scalar_type_definition, :on_object_type_definition, :on_input_value_definition, :on_field_definition, :on_interface_type_definition, :on_union_type_definition, :on_enum_type_definition, :on_enum_value_definition, :on_input_object_type_definition, :on_field, ]
- VALIDATE_DIRECTIVE_LOCATION_ON_NODE =
<<~RUBY def %{method_name}(node, parent) if !node.directives.empty? validate_directive_location(node) end super(node, parent) end RUBY