doc.arr.push('test');. doc.save(function(error) {. assert.ok(error);. // MongooseError: Duplicate values in array `arr`: [test,test].
確定! 回上一頁