Query.prototype.centerSphere()
Parameters
- [path] «String»
- val «Object»
Returns:
- «Query» this
DEPRECATED Specifies a $centerSphere
condition
Deprecated. Use circle instead.
Example
const area = { center: [50, 50], radius: 10 };
query.where('loc').within().centerSphere(area);
当前内容版权归 mongoosejs 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 mongoosejs .