title: Failed to parse: filter: mongoDB error
body: <p>I am trying to query the data from a collection with a date range field , my document has regex search implemented,</p>
  
  <p>my query is as follows,</p>
  
  <pre><code> db.getCollection('_event').find([{"name":{"$regex":"2017","$options":"i"}},{},{"date.start:{$gte":"2017-03-07T18:30:00.000Z"},{"date.end:{$lt":"2017-11-16T18:30:00.000Z"}])
  </code></pre>
  
  <p>and mongo throws an error </p>
  
  <blockquote>
    <p>Error: error: {   "waitedMS" : NumberLong(0),     "ok" : 0,   "errmsg" :
    "Failed to parse: filter: [ { name: { $regex: \"2017\", $options:
    \"i\" } }, {}, { date.start:{$gte: \"2017-03-07T18:30:00.000Z\" }, {
    date.end:{$lt: \"2017-11-16T18:30:00.000Z\" } ]. 'filter' field must
    be of BSON type Object.",     "code" : 9 }</p>
  </blockquote>
  
  <p>any help guys?</p>