node.js - geoNear not found on Mongoose model? -


i'm confused why geonear not found on mongoose model:

var location = { type : 'point', coordinates : coordinates };  shift.geonear(location, { maxdistance : 5, spherical : true }, function(err, results, stats) {     response.json(results);     console.log(stats); });  typeerror: object function model(doc, fields, skipid) {  if (!(this instanceof model))   return new model(doc, fields, skipid);   model.call(this, doc, fields, skipid);  } has no method 'geonear' 


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -