I'm following the [Meteor To-Do App tutorial with Angular integration](https://www.meteor.com/tutorials/angular/filtering-collections) and am learning about filtering collections. I've been able to implement a simple filter on a collection for the app I'm working on by following the principles in the tutorial, but now I'm stuck trying to figure out how to add multiple queries to the filter.

In the example, you can view incomplete tasks by toggling a checkbox. This is implemented in the controller by watching `$scope.hideCompleted` for changes and passing it as a Mongo query to filter the Meteor collection.

**Watcher**

```
$scope.$watch('hideCompleted', function() {
  if ($scope.hideCompleted)
    $scope.query = {checked: {$ne: true}};
  else
    $scope.query = {};
});

```

**Collection filter**

```
$scope.tasks = $meteor.collection(function() {
  return Tasks.find($scope.getReactively('query'), {sort: {createdAt: -1}})
});

```

*How do I make the query support multiple filters?* For example, say I've chosen to extend the example and have ranked each to-do item by priority. I then would have an an input field for the user to filter the collection by priority, whose value is bound to `$scope.priority`. Now, if I wanted to filter the to-do list by incomplete and priority=$scope.priority tasks, I understand the Mongo query would need to be something along the lines of `Tasks.find({ $and: [{ checked: {$ne: true} },{ priority: $scope.priority }]},{ sort: { createdAt: -1 } })`.

In my app, I've been able to make two watchers properly track changes to two scope variables, analogous to my example with `$scope.hideCompleted` and `$scope.priority`, but I don't know how to take the next step to merge the queries when filtering the collection. I've also tinkered around a little with [this package](https://github.com/julianmontagna/filter-collections), since I'll eventually hope to be able to filter and sort by many criteria, but I didn't get too far with it before switching to the concepts I've described here.

I'd appreciate any help with this. Thank you!