Parse-server: How to use $ geoNear with aggregate責

Created on 22 Feb 2019  路  1Comment  路  Source: parse-community/parse-server

Uncaught internal server error. { MongoError: geoNear command failed: { ok: 0.0, errmsg: "'near' field must be point", code: 17304, codeName: "Location17304" }
at queryCallback (/root/parse-server-example/node_modules/mongodb-core/lib/cursor.js:248:25)
at /root/parse-server-example/node_modules/mongodb-core/lib/connection/pool.js:532:18
at args.(anonymous function) (/usr/lib/node_modules/pm2/node_modules/event-loop-inspector/index.js:138:29)
at _combinedTickCallback (internal/process/next_tick.js:132:7)
at process._tickDomainCallback (internal/process/next_tick.js:219:9)
ok: 0,
errmsg: 'geoNear command failed: { ok: 0.0, errmsg: "\'near\' field must be point", code: 17304, codeName: "Location17304" }',
code: 16604,
codeName: 'Location16604',
name: 'MongoError',

my code
image

>All comments

our github issues are for bugs and feature requests.

If you'd like help, StackOverflow is a good resource.

Was this page helpful?
0 / 5 - 0 ratings