Skip to content
Advertisement

Add a new image with the existing image list in firestore database

I have already two images in the firestore database, I am trying to add a new image to this list? How can I add a new image to the existing image list?

Firebase collection

Advertisement

Answer

To add another array to the postImg, you can:

JavaScript

Also see the Firebase documentation on adding items to an array.

Advertisement