I have an app that requires my website user’s credentials for authentication, so I’ve tried querying the Members/PrivateMembersData collection. But my query only returns this error message in the Developer Console, which I’m assuming is a permission issue but can’t be sure.
Take into account that the permissions for this collection are restricted. And a regular member can only read his/her own record. So you should limit the query to .eq(“_id”, userId)
Yes, I forgot to add that you can’t just use that given code as face value, you will need to add your equal to query otherwise you will possibly get errors still.