In 3.7.x, we introduced new syntax for within() and intersects()
This is a shim to revert to the old syntax.
npm install mongoose-within
var mongoose = require('mongoose');var shim = require('mongoose-within'); shim(mongoose); // you can now make queries using the old syntax...
Selectively mirror the npm registry inside your firewall. Filter packages based on security, licensing, code quality and more. Build awesome stuff faster. Try npm Enterprise for free…
how? learn more