Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db.collection("files").find().limit(3).toArray(function(err, result) {
- if (err) throw err;
- result.forEach(function(element) {
- db.collection("files").deleteOne(element, function(err, obj) {
- if (err) throw err;
- db.collection("procesing").insertOne(element, function(err, res) {
- if (err) throw err;
- });
- });
- });
- });
Add Comment
Please, Sign In to add comment