Last active
December 7, 2018 05:24
-
-
Save songthamtung/546a938a88fa5dbd34b1504e2f9e2085 to your computer and use it in GitHub Desktop.
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
// unset all users' rank from db | |
await User.bulkWrite([{updateMany : { | |
filter: { rank: {$exists: true}}, | |
update: { $unset: { rank: 1 } } | |
} | |
}]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment