I have multiple documents each with unique _id but with same studentId like the following
studentId: "A",
assignment: "Passed"
}
Now I want to update all matching documents with same studentId with different assignment updates like the following
studentId: "A",
assignment: "Failed"
}
studentId: "A",
assignment: "Passed"
}
In a single DB call with an array of assignments statuses passed to it
Is it possible to this without a for loop?
Thanks