When I try to add an object to an array, it updates existing objects of the array and displays the error as: "Duplicate keys detected: \'test\'. This may cause an update er