Chris Esplin
Jul 25, 2017 · 1 min read

Since you can’t combine two queries at once, such as pagination and filtering, you’ll need to either paginate on the client or duplicate data. For instance, you could have your normal /users node and then /usersByEmployeeType as well. When you need to filter by employeeType, you could query the secondary data structure, so maybe you’d query /usersByEmployeeType/some-employee-key/

That’s the best that I have for you :( I wish this were easier to solve.

    Chris Esplin

    Written by

    Front-End Web Developer; Google Developer Expert: Firebase; Calligraphy.org