title: Near operator for geojson point returning error when maxdistance is used in query
body: <p>I am trying to store some geojson points in mongo db.Here is the mongoose schema I have defined.</p>
  
  <pre><code>new mongoose.Schema({
          itemName:String,
          loc:{ type: [Number], index: '2dsphere'}
      });
  </code></pre>
  
  <p>Next I am trying to run a near operator to find out some points nearby.This is how I have defined the near query.</p>
  
  <pre><code>Model.where('loc').near({ center: { type:"Point",coordinates: [10,10] }, maxDistance: 20 }).exec(function(err,data){
              console.log(err);
              if (!err &amp;&amp; data) {
                  console.log("Success");
              } else {
                  console.log("Error");
              }
          });
  </code></pre>
  
  <p>But this is returning an error value as follows:</p>
  
  <blockquote>
    <p>{ [MongoError: Can't canonicalize query: BadValue geo near accepts
    just one argu ment when querying for a GeoJSON point. Extra field
    found: $maxDistance: 20] name : 'MongoError' }</p>
  </blockquote>
  
  <p>If i remove the <code>maxDistance</code> it is returning all the collection elements.</p>
  
  <p>Any idea why this error is coming?Thanks in advance for any help</p>