Query.prototype.intersects()
Parameters
- [arg] «Object»
Returns:
- «Query» this
Declares an intersects query for geometry()
.
Example
query.where('path').intersects().geometry({
type: 'LineString'
, coordinates: [[180.0, 11.0], [180, 9.0]]
})
query.where('path').intersects({
type: 'LineString'
, coordinates: [[180.0, 11.0], [180, 9.0]]
})
NOTE:
MUST be used after where()
.
NOTE:
In Mongoose 3.7, intersects
changed from a getter to a function. If you need the old syntax, use this.
当前内容版权归 mongoosejs 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 mongoosejs .