-
-
Notifications
You must be signed in to change notification settings - Fork 336
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
Can't bind document with sub references without opening the firestore rules #295
Comments
I would say Vuefire is binding nested ref but rules are preventing it. The weird thing is there is no access error. Are you running a minified version of Firebase? Even though I think they report errors |
In that case, this would be a duplicate of #281 |
Thank you for the quick reply. I saw that issue too, but I don't think they are the same. In that situation, the reference was to a doc that was not allowed. In my case, the referenced document (e.g
and it works. Testing again. Could be cache or something. Later today I will give this another shot. I just wanted to make sure it was not a known issue. Edit: maybe you missed it, but I am using |
Ah yeah, it seems to be different indeed. However, I don't know where it's coming from. My guess is there is something with the SDK. If you have a repro with the JS SDK, I can take a look! |
Closing due to inactivity. Please open a new issue with a reference to this one if you can follow up with more information. |
Using
nativescript-plugin-firebase
by @eddyerburgh.I have a
categories
collection. Each category has an array (not a collection) of references torecipe
.I am creating the binding like this:
In Firestore, I have the rules:
In this situation, the binding will not work (
bindFirestoreRef
will never resolve). I don't see any errors in the console, even with acatch
.This problem is related to the rules not being applied to the sub-references.
It does work if I do one of the following:
1- I change the binding to
{ maxRefDepth: 0 }
because it will not grab the sub-documents.2- If I open the firestore rules with
This is very weird because I am also binding the recipes and that works with the original rules! For this reason, I think it has something to do with the way Vuexfire is binding sub-references.
Sorry, I can't dig deeper right now. Maybe I am doing something wrong?
The text was updated successfully, but these errors were encountered: