Skip to content

Instantly share code, notes, and snippets.

@devrsantos
Created January 17, 2020 01:48
Show Gist options
  • Save devrsantos/35e89572350829c031813de2e7956224 to your computer and use it in GitHub Desktop.
Save devrsantos/35e89572350829c031813de2e7956224 to your computer and use it in GitHub Desktop.
const car = db.store.findOne({name: "Ferrari"});
car.door = 2;
db.store.update({name: "Ferrari"}, car);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment