title: How to use $and in $match query with pymongo?
body: <p>My query now is</p>
  
  <pre><code>events = mdb.events.aggregate([
          {"$match": {"type": "ClientService"}},
          {"$project": {"value": 1, "day": {"$dayOfYear": "$timestamp"}, "count": {"$add": [1]}}},
          {"$group": {"_id": {"day": "$day", "value": "$value"}, "count": {"$sum": "$count"}}},
          {"$sort": {"day": -1, "value": 1}}
      ])
  </code></pre>
  
  <p>How to modify this query to use "$and" statement in $match query to find documents by more than one parameter?</p>