Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

mongoose-within

ebensing8BSD0.1.0

This is a shim to help with old within/intersects syntax in mongoose

mongoose, within, intersects, 3.6

readme

Mongoose-within

In 3.7.x, we introduced new syntax for within() and intersects() queries

This is a shim to revert to the old syntax.

Installation

npm install mongoose-within

Use

var mongoose = require('mongoose');
var shim = require('mongoose-within');

shim(mongoose);

// you can now make queries using the old syntax...