mongodb 필드끼리 비교 $where

BANGJH·2020년 9월 2일
0

#### $where 연산자를 통하여 javascript expression을 사용할 수 있다.

db.getCollection('test').find( {$where: "this.field1 !== this.field2"} )
profile
안녕하세요 신입 웹개발자입니다.

0개의 댓글