Typeorm obtiene valor nulo
const users = await userRepository.createQueryBuilder("user")
.where("user.name IS NULL")
.getMany();
Restu Wahyu Saputra
const users = await userRepository.createQueryBuilder("user")
.where("user.name IS NULL")
.getMany();
import { IsNull } from "typeorm";
return await getRepository(User).findOne({
where: {
username: IsNull()
}
});
import { IsNull, Not } from "typeorm";
return await getRepository(User).findOne({
where: {
username: Not(IsNull())
}
});