Replies: 1 comment 4 replies
-
Hi @haIIux, it's not clear exactly what you want the database to look like after your write succeeds. Assuming Firestore.firestore().collection("cozys").document("2").setData([
"name": name,
"url": url,
"notes": notes
]) |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm not sure the best method to ask this question but I'm going to go for it... I am building out an application which I am using Firestore for. The data is arranged as follows within the Firestore website interface and accepts without issue and also reads without issue, it's the writing that is the problem.
As you can see,
cozys
is an array and the objects within, are a Firestore map. I've tried a few methods to get this to work which you will find below.I visited this link via the docs and attempted to do it that way as well which yielded the error below the code snippet.
Beta Was this translation helpful? Give feedback.
All reactions