Skip to content

Instantly share code, notes, and snippets.

@AurelienGasser
Last active December 19, 2015 06:59
Show Gist options
  • Save AurelienGasser/5915828 to your computer and use it in GitHub Desktop.
Save AurelienGasser/5915828 to your computer and use it in GitHub Desktop.
var cars = db.cars.find().toArray();
for (var i in cars) {
var car = cars[i];
car.imageSize = { w: 128, h: 64 }; // faut mettre quoi ici ? :p
/* afficher */
printjson(car);
/* sauvegarder (on peut car _id est present) */
db.cars.save(car)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment