[MongoDB] $type
요약: 필드의 값이 특정 type을 가지는 document를 모두 가져오고 싶을 때 $type을 사용 우선 아래 documents를 생성했다고 가정합니다. db.addressBook.insertMany( [ { "_id" : 1, 주소 : "2030 Martian Way", 우편번호 : "90698345" }, { "_id" : 2, 주소: "156 Lunar Place", 우편번호 : 43339374 }, { "_id" : 3, 주소 : "2324 Pluto Place", 우편번호: NumberLong(3921412) }, { "_id" : 4, 주소 : "55 Saturn Ring" , 우편번호 : NumberInt(88602117) }, { "_id" : 5, 주소 : "104 Venus Drive..
2022. 7. 1.