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 equalTo to get all results #608

Closed
cre8 opened this issue Oct 11, 2016 · 2 comments
Closed

Empty equalTo to get all results #608

cre8 opened this issue Oct 11, 2016 · 2 comments

Comments

@cre8
Copy link

cre8 commented Oct 11, 2016

Is it possible to get all results with the same query, so I can use it for 'large', 'small' and all values?

const subject = new Subject(); // import {Subject} from 'rxjs/Subject';
const queryObservable = af.database.list('/items', {
  query: {
    orderByChild: 'size',
    equalTo: subject 
  }
});

subject.next('large'); //only large
subject.next('small'); // only small
subject.next(''); // should return both, but returns nothing
@katowulf
Copy link
Contributor

Hi cre8. Please follow the issue template provided. Simple how-to questions are best suited for Stack Overflow or one of the email groups.

@cre8
Copy link
Author

cre8 commented Oct 12, 2016

a simple subject.next(null) would be enough ;)

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