Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongoBD increment

db.collection.updateOne.({id:"<documentid>"},{ $inc: { field1: incrementAmount1, field2: incrementAmount2, ... } })
 
PREVIOUS NEXT
Tagged: #mongoBD #increment
ADD COMMENT
Topic
Name
9+3 =