use school

db.createCollection("students")

db.students.insertMany([
  {name: 'Ryan', age:21, grade: "A", major: "IST"},
  {name: 'Joanna', age: 22, grade: "F", major: "Math"},
  { name: 'Charlie', age:20, grade: "C", major: "Compsci"},
  {name: 'Bob', age:23, grade: "D", major: "Journalism"},
  {name: 'Chris', age:21, grade: "A", major: "IST"}
]);

db.students.updateOne(
  { name: "Charlie" },          
  { $set: { grade: "B" } }      
)
db.students.find()










Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: