I would like to add a new product to the allProducts array without deleting the existing product.
Here is the database.
And the code. This solution always overwrite the existing product.
If you want to add an item to an existing array, you can:
array-union
You'll probably want to do the latter here.