Skip to content

Empty equalTo to get all results #608

Closed
@cre8

Description

@cre8

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions