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

Empty string as child key returns the collection in Firebase, null in targaryen #154

Open
Soreine opened this issue Nov 30, 2018 · 1 comment

Comments

@Soreine
Copy link

Soreine commented Nov 30, 2018

I think I have am encountering an inconsistency between Firebase and targaryen, in the way they treat .child("").

In my rules, I check the existence of a value in a collection by doing collection.child(key) != null. But for an empty key "", it looks like targaryen returns null while Firebase returns something (maybe the collection itself). I have noticed that doing collection.child("") != null in Firebase always pass, though I don't have any values at a "" key (I doubt it's even possible).

Do you have any insight here?

@dinoboff
Copy link
Collaborator

dinoboff commented Dec 4, 2018

I can have a look.

Do you have an example, Including rules, data?

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

2 participants