My command like this:
db.item.remove()
db.item.update({_id:{$in:['A1','A2']}},{$inc:{count:1}},{multi: true, upsert: true})
my desired result should be
db.item.find() -->
{_id: 'A1', count: 1}
{_id: 'A2', count: 1}
but in fact it is:
{_id: ObjectId(xxx), count: 1}
{_id: ObjectId(xxx), count: 1}
seems like Upsert cannot automatic use the val in the query arrary as the _id of new document, is there a way to get my purpose?