Skip to content

Set and Get Nested data #155

Discussion options

You must be logged in to vote

Do you forgot the level 'User' in your InsertOrUpdateDocument method call?

Database.InsertOrUpdateDocument(['Practitioners', '0eB9jg1zBijcXoYgoKmP','User','hxGhwHLftPB70FagWpP6','Lumbar Denerroll' ],Doc, nil, OnFirestoreInsertOrUpdate, OnFirestoreError)

In the reported error message the path seems to be correct.

Can you test the following actions:

  1. Remove the space from 'LumbarDenerroll'. I'm unsure if spaces are allowed here. Of course it is always a bad idea to insert spaces in IDs.
  2. Use also an document ID on the deepest level 'LumbarDenerroll' so you get a document path like this:
    projects/XXXXXXX/databases/(default)/documents/Practitioners/0eB9jg1zBijcXoYgoKmP/Users/hxGhwHLftPB70FagWp…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by SchneiderInfosystems
Comment options

You must be logged in to vote
0 replies
# for free to join this conversation on GitHub. Already have an account? # to comment
Category
Q&A
Labels
None yet
2 participants