I am using react-redux-firebase for my project. Data of various users are being stored in a collection quotes in Firebase as in the image at the bottom.
Now, I want to filter the data from the collection quotes. I want to access data specific to current logged in user.
BUT I'm unable to retrieve any data. P.S When I remove where: [["quote.authId",'==',props.auth.uid]], line from above code, (which should fetch all data ) data of all users are being fetched properly.Related images are :
Have you tried waiting for auth to load before creating the query? Otherwise the query will contain undefined - This practice is described in the queries section and in the auth recipes section of the docs
I am using react-redux-firebase for my project. Data of various users are being stored in a collection quotes in Firebase as in the image at the bottom. Now, I want to filter the data from the collection quotes. I want to access data specific to current logged in user. BUT I'm unable to retrieve any data. P.S When I remove where: [["quote.authId",'==',props.auth.uid]], line from above code, (which should fetch all data ) data of all users are being fetched properly.Related images are :