The $meta projection operator supports two (undocumented) values for geo queries: geoNearDistance and geoNearPoint
These projection values trigger InternalErrors when used with non-geo data.
Versions affected: 2.6.0+
> t.find({}, {a: {$meta: 'geoNearDistance'}}).toArray(); 2015-04-07T18:47:49.196-0400 E QUERY Error: error: { "$err" : "Executor error: InternalError near loc dist requested but no data available", "code" : 17144 } > t.find({}, {a: {$meta: 'geoNearPoint'}}).toArray(); 2015-04-07T18:48:18.455-0400 E QUERY Error: error: { "$err" : "Executor error: InternalError near loc proj requested but no data available", "code" : 17144 }
- related to
-
SERVER-17929 Add full query support for $meta values geoNearDistance/geoNearPoint
- Backlog