xxxxxxxxxx
import * as bcrypt from 'bcrypt';
async create(createUserInput: CreateUserInput) {
const saltOrRounds = 10;
const password = createUserInput.password;
createUserInput.password = await bcrypt.hash(password, saltOrRounds);
const user = new this.userModel(createUserInput);
return user.save();
}