Checks if the given value is a Set without duplicate values with regard to the given projection.
// Ensure the set does not include duplicate users.@SetUnique<User>(user => user.id)administrators: Set<User> Copy
// Ensure the set does not include duplicate users.@SetUnique<User>(user => user.id)administrators: Set<User>
The type of the set's values.
The type returned by projection.
projection
The function mapping each value to the value that is used for the uniqueness check.
Optional
Generic class-validator options.
Checks if the given value is a Set without duplicate values with regard to the given projection.
Example