db.studentSeminar.insert({
seminar: {
seminarID: "sem004",
seminarDescription: "In-memory Database.",
seminarDate: "2-May-2020",
creditPoint: 3,
seminarEnrolment: [
{ studentID: "std004", enrolmentDate: "20-April-2020" },
{ studentID: "std002", enrolmentDate: "10-April-2020" },
],
},
student: [
{
studentID: "std004",
studentName: "Klein Acevedo",
address: "Block 23, Toa Payoh",
telephone: [{ handphone1: "93589248", handphone2: "82354723" }],
enrolTo: [{ seminarID: "sem004", markReceived: 64 }],
},
{
studentID: "std002",
studentName: "Selma Hobbs",
address: "87 Pearl Hill",
telephone: [{ handphone: "91647249", residentphone: "62691355" }],
enrolTo: [{ seminarID: "sem004", markReceived: 89 }],
},
],
});
С простой коллекцией mongoDB выше я пытаюсь выполнить простой поисковый запрос ниже
db.studentSeminar.find({"seminarDescription": "In-memory Database."})
Однако он ничего не возвращает и не отображает сообщение об ошибке
Кто-нибудь может мне помочь? Я все еще новичок в MongoDB. Заранее спасибо