File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
source/reference/operator/aggregation Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -56,12 +56,11 @@ Syntax
56
56
- String
57
57
- Field in the ``input`` object for which you want to return a
58
58
value. ``field`` can be any valid :ref:`expression
59
- <aggregation-expressions>` that resolves to a string
60
- constant.
59
+ <aggregation-expressions>` that resolves to a string.
61
60
62
61
If ``field`` begins with a dollar sign (``$``), place the field
63
- name inside of a :expression:`$literal` expression to return its
64
- value.
62
+ name inside of a :expression:`$literal` or
63
+ :expression:`$toString` expression to return its value.
65
64
66
65
* - ``input``
67
66
- Object
@@ -89,9 +88,6 @@ described above.
89
88
Behavior
90
89
--------
91
90
92
- - If ``field`` resolves to anything other than a string constant,
93
- :expression:`$getField` returns an error.
94
-
95
91
- If the ``field`` that you specify is not present in the ``input``
96
92
object, or in :variable:`$$CURRENT <CURRENT>` if you don't specify an
97
93
``input`` object, :expression:`$getField` returns ``missing``.
You can’t perform that action at this time.
0 commit comments