class GraphQL::Schema::Validator::ExclusionValidator

Use this to specifically reject values from an argument.

Examples

Example: disallow certain values

argument :favorite_non_prime, Integer, required: true,
  validates: { exclusion: { in: [2, 3, 5, 7, ... ]} }