Skip to content

Commit 8b84786

Browse files
authored
PHPLIB-1609 Don't mandate the use of "distanceField" in $geoNear (#1569)
The $geoNear distanceField argument is now optional for queries on non-timeseries collections.
1 parent 3a8a0a7 commit 8b84786

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed

generator/config/stage/geoNear.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ arguments:
1111
name: distanceField
1212
type:
1313
- string
14+
optional: true
1415
description: |
1516
The output field that contains the calculated distance. To specify a field within an embedded document, use dot notation.
1617
-

src/Builder/Stage/FactoryTrait.php

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Stage/FluentFactoryTrait.php

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Stage/GeoNearStage.php

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)