Skip to content
Discussion options

You must be logged in to vote

Hi @gtlsgamr, the error should be fairly self explanatory, and it comes from the Firebase SDK. Please take a look at the Cloud Firestore Data model to understand how documents and collections work.

By changing foo to foo/baz, you've turned your paths, which would have been originally pointing to documents, to be pointing to a collection.

For example, users/john would have pointed to a document with the ID john in the collection users. You've now changed the path to users/baz/john, which is now pointing to a subcollection called john under the document baz. You cannot import a document to to a collection path.

If you want to change the nesting level of your documents, you'll need to add an e…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by benyap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #434 on August 07, 2024 06:13.