본문 바로가기

A.개발관련자료

[0]nestjs typeorm OR, AND

참고: https://orkhan.gitbook.io/typeorm/docs/find-options

//AND 연산
userRepository.find({ where: { firstName: "Timber", lastName: "Saw" } });

//OR 연산
userRepository.find({
    where: [
        { firstName: "Timber", lastName: "Saw" },
        { firstName: "Stan", lastName: "Lee" },
    ],
});