Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to read a deeply nested document? #304

Open
solveretur opened this issue Sep 2, 2020 · 0 comments
Open

How to read a deeply nested document? #304

solveretur opened this issue Sep 2, 2020 · 0 comments

Comments

@solveretur
Copy link

In my firestore database under the path

/partner/test/communication/00zza91efc5543adac476cc7383ad601/messages/23f59111-6e5e-4510-b342-c6f5906ravc

I store such document

channel : "facebook"
customerId : "00zza91efc5543adac476cc7383ad601"
messageId : "23f59111-6e5e-4510-b342-c6f5906ravc"
text : "How would I know ?"
timestamp : 1566294144185
who : "customer"

And I absolutely have no idea how to read it using react-redux-firestore I tried something like this


        {
            collection: "partner",
            doc: "test",
            subcollections: [
                {
                    collection: "communication",
                    doc: "00zza91efc5543adac476cc7383ad601"
                }
            ],
            storeAs: "message_a"
        }

But it gives me only collection of messages not the specific message I want to read. How to solve it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant