Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db.inventory.updateOne(
- { item: "mousepad" },
- { $set: {item: "hola"} }
- )
- db.inventory.updateOne(
- { item: "paper" },
- { $inc: { qty: 1} }
- )
- db.inventory.updateOne(
- {item: "postcard"},
- {$unset: { qty: "", status: ""} }
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement