Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db.collection('example').dropIndexes(() => {
- db.collection('example').find().toArray(function (err, docs) {
- // Do changes to docs here, create new index etc.
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement