Skip to content

Commit

Permalink
PHPLIB-1609 Don't mandate the use of "distanceField" in $geoNear (#1569)
Browse files Browse the repository at this point in the history
The $geoNear distanceField argument is now optional for queries on non-timeseries collections.
  • Loading branch information
GromNaN authored Jan 24, 2025
1 parent 3a8a0a7 commit 8b84786
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
1 change: 1 addition & 0 deletions generator/config/stage/geoNear.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ arguments:
name: distanceField
type:
- string
optional: true
description: |
The output field that contains the calculated distance. To specify a field within an embedded document, use dot notation.
-
Expand Down
6 changes: 3 additions & 3 deletions src/Builder/Stage/FactoryTrait.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/Builder/Stage/FluentFactoryTrait.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions src/Builder/Stage/GeoNearStage.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8b84786

Please sign in to comment.