Module: GraphQL::StaticValidation::Message::MessageHelper
- Included in:
- ArgumentsValidator, DirectivesAreDefined, DirectivesAreInValidLocations, FieldsAreDefinedOnType, FieldsHaveAppropriateSelections, FragmentNamesAreUnique, FragmentSpreadsArePossible, FragmentTypesExist, FragmentsAreFinite, FragmentsAreNamed, FragmentsAreOnCompositeTypes, FragmentsAreUsed, GraphQL::StaticValidation::MutationRootExists, NoDefinitionsArePresent, OperationNamesAreValid, RequiredArgumentsArePresent, SubscriptionRootExists, UniqueDirectivesPerLocation, VariableDefaultValuesAreCorrectlyTyped, VariableNamesAreUnique, VariableUsagesAreAllowed, VariablesAreInputTypes, VariablesAreUsedAndDefined
- Defined in:
- lib/graphql/static_validation/message.rb
Overview
Convenience for validators
Instance Method Summary collapse
-
#message(message, nodes, context: nil, path: nil) ⇒ Object
Error
message
is located atnode
.
Instance Method Details
#message(message, nodes, context: nil, path: nil) ⇒ Object
Error message
is located at node
9 10 11 12 13 |
# File 'lib/graphql/static_validation/message.rb', line 9 def (, nodes, context: nil, path: nil) path ||= context.path nodes = Array(nodes) GraphQL::StaticValidation::Message.new(, nodes: nodes, path: path) end |