loopback unique field code example Example: loopback unique field Model.validatesUniquenessOf('attr');