-
Notifications
You must be signed in to change notification settings - Fork 142
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
Cannot create property '$key' on boolean 'true' #6
Comments
Hi, thanks for reporting. Using |
But https://firebase.google.com/docs/database/web/structure-data#fanout actually give the above as an example. So how you reproduce the advice in the link so that it works with firebase-query? |
@cdata this limitation pretty much kills doing fast lookup on the key. In the example I pasted there is no way one could do groups/[[an_id]]. Now one has to get the entire collection (groups) and iterate over it, it doesn't seem to scale TBH. Maybe you have a better suggestion. |
Hi @cdata, I also stumbled upon this issue today. I think this limitation is a real concern and the issue shouldn't be closed without fixing, or what do you think? |
As workaround you can use firebase-document instead of firebase-query.
The element "object-to-array" should be like this:
|
We've also structured our firebase this way according with the Firebase docs' explanation that you should work in the way @ExWei showed. I found out this didn't work when I noticed that |
Description
When using
<firebase-query>
with data structure likeit throws an error
Cannot create property '$key' on boolean 'true'
Steps to reproduce
Create data like
and
<firebase-query>
element likeThe text was updated successfully, but these errors were encountered: