Typeorm Null GetBuilder
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, Not } from "typeorm";
return await getRepository(User).findOne({
where: {
username: Not(IsNull())
}
});