-
I am trying to export a top-level collection I am getting the below error Below is the command I am using to export And to import
FYI, in the json I am editing all the paths that begin with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 For example, If you want to change the nesting level of your documents, you'll need to add an even number of segments. Closing this as it's not an issue with the package, but feel free to reply if you need further assistance! |
Beta Was this translation helpful? Give feedback.
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
tofoo/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 IDjohn
in the collectionusers
. You've now changed the path tousers/baz/john
, which is now pointing to a subcollection calledjohn
under the documentbaz
. 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…