Thu, 2 Apr 2015 5:41 pm
#enlightenment #mongodb #project

    db.nomor_agenda.findAndModify({
        "query" : {"$and" : [{"kode_jabatan": "01"}, {"tahun": 2015}]},
        "update" : {"$inc" : {"nomor_agenda": 1}},
        "upsert" : true,
        "new" : true
    })

138
Additional Info: