db.createCollection("examStudent");
db.examStudent.insertOne({
id: 1004,
firstName: "Keisha",
lastName: "Anderson",
dob: new Date("2006-01-17"),
gender: "Female",
address: {
street: "8 Church Road",
town: "Kingston",
parish: "Kingston"
},
school: "Campion College",
subject: ["Mathematics", "English", "Information Technology"]
});
db.examStudent.insertOne({
id: 1005,
firstName: "Andre",
lastName: "Thompson",
dob: new Date("2005-07-30"),
gender: "Male",
school: "St Catherine High",
subject: ["English", "Physics", "Mathematics"]
});
db.examStudent.insertOne({
id: 1006,
firstName: "Janelle",
lastName: "Clarke",
dob: new Date("2006-12-05"),
gender: "Female",
email: "janelle.clarke@example.com",
school: "Spanish Town High",
subject: ["Biology", "Chemistry", "Mathematics"]
});
db.examStudent.find();
To embed this project on your website, copy the following code and paste it into your website's HTML: