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

equalTo(boolean) return NULL #293

Open
neuberoliveira opened this issue Feb 17, 2017 · 1 comment
Open

equalTo(boolean) return NULL #293

neuberoliveira opened this issue Feb 17, 2017 · 1 comment

Comments

@neuberoliveira
Copy link

I think i may found i bug,

First i insert this data to my database

firebase.database.ref('request').push({
	status: 0,
	finished: false,
	rated: false,
	user: userKey,
	ower: owerKey,
	garage: garageKey,
});

The data is stored without problems. My issue is when i try to use equalTo() with the finished property, that is a boolean, it always return null.

Fetch Code

firebase.database.ref('request').orderByChild('finished').equalTo(false).on('value', (requestSnap)=>{
	console.log(requestSnap.value); //the value is always NULL
});

The most strange to is if i change the stored data of finished property to a string "false", the same fetch code work and i get the data. This is the expected behavior, its a bug or iam done something wrong?

@AndrewHenderson
Copy link

@neuberoliveira I'm experiencing the same issue. It doesn't look like it's going to be resolved until v3 of this library.

See: https://github.com/fullstackreact/react-native-firestack/milestone/4

Similar issue report: #121

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