Method: GraphQL::Schema::Validator.install
- Defined in:
- lib/graphql/schema/validator.rb
.install(name, validator_class) ⇒ void
This method returns an undefined value.
Add validator_class to be initialized when validates: is given name.
(It's initialized with whatever options are given by the key name).
86 87 88 89 |
# File 'lib/graphql/schema/validator.rb', line 86 def self.install(name, validator_class) all_validators[name] = validator_class nil end |