Ошибка компаса MongoDB - ожидается «[» или AggregationStage, но «{» найдено - PullRequest
1 голос
/ 03 мая 2020

Я пытаюсь выполнить следующий запрос на MongoDB Compass, но обнаружил ожидаемый "[" или AggregationStage, но "{" обнаружил ошибку. Я использовал шаблон, предоставленный для $ geoNear, но не смог передать ошибку.

    /**
 * options: The geo query options.
 */
{
  near: {type : "Point", coordinates : [ -153.00, 58.00 ]},
  distanceField: "coordinates",
  maxDistance: 500000,
  query: Limits results that match the query
  includeLocs: Optional. Labels and includes the point used to match the document.
  num: Optional. The maximum number of documents to return.
  spherical: true
}
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...