Created
December 20, 2020 17:24
-
-
Save ranamahmud/cc4adb1668e9f99084d6c102cb3703f4 to your computer and use it in GitHub Desktop.
mongo query
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
db.studentCollection.updateMany( | |
{ status: "pending" }, | |
{ $set: { "status" : "verified" } } | |
); | |
} catch (e) { | |
print(e); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment