Reputation: 12813
How can one create a document in Firestore using the Firebase console that is an array of objects? Such as:
myarray: [
{hello: "world"}
]
I tried the following:
But this is the result:
Upvotes: 2
Views: 1762
Reputation: 6900
It must be a bug, i tried my self and got same result. But i found a workaround.
First create the collection and document first and click save.
then click +ADD FIELD
and only add your array myarray
lastly click the +
button on myarray
and add your objects.
Basically do it one by one.
Upvotes: 2