$jsonSchema 예시1 [MongoDB] $jsonSchema 요약 - collection에서 특정 JSON 스키마를 충족하는 모든 document를 가져옵니다. - collection에 특정 JSON 스키마를 설정하여 document들을 검증할 수 있습니다. $jsonSchema의 query 예시입니다. { $jsonSchema: { required: [ "이름", "전공", "평점", "주소" ], properties: { 이름: { bsonType: "string", description: "필수입력 사항입니다." }, 주소: { bsonType: "object", required: [ "우편번호" ], properties: { "도로명": { bsonType: "string" }, "우편번호": { bsonType: "string" } } } } } } 몽고.. 2022. 7. 1. 이전 1 다음