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