Convert query._id in ObjectId and set $set operator