Skip to content

database list query with multiple Subject parameters #603

Description

@nelsonad

Here's a plunker of what I'm trying to do, and it has the issues I'm seeing with needing to perform a search twice before getting results back
http://plnkr.co/edit/HaWIwkhPWz08qJT6mYuJ?p=preview

Basically I have composite keys so I can search multiple fields with a single query, and based on the search terms supplied I need to change which key I search on. So I'm setting query.orderByChild and query.equalTo to two different Subject variables and calling next() on them both during a search.

I dont know if there's a different way to accomplish this, but what I'm doing doesn't seem to work.

I also tried setting the whole query object to a Subject variable and calling next on it (example next({orderByChild: 'state', equalTo: 0}), but that didnt work either.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions