db.numbers.drop() var counter = 0 while (counter<=1000){ db.numbers.save({"value":counter}) counter = counter + 1; }