Skip to content

Commit 2df0624

Browse files
committed
updated the spec text
1 parent 8a39e45 commit 2df0624

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

spec/Appendix A -- Field Selection.md

+14-6
Original file line numberDiff line numberDiff line change
@@ -395,12 +395,20 @@ SelectedValueEntry ::
395395
- Path SelectedListValue
396396
- SelectedObjectValue
397397

398-
A {SelectedValue} is defined as either a {Path} or a {SelectedObjectValue}
399-
400-
A {Path} is designed to point to only a single value, although it may reference
401-
multiple fields depending on the return type. To allow selection from different
402-
paths based on type, a {Path} can include multiple paths separated by a pipe
403-
(`|`).
398+
A {SelectedValue} consists of one or more {SelectedValueEntry} components, which
399+
may be joined by a pipe (`|`) operator to indicate alternative selections based
400+
on type.
401+
402+
Each {SelectedValueEntry} may take one of the following forms:
403+
404+
- A {Path} (when not immediately followed by a dot) that is designed to point to
405+
a single value, although it may reference multiple fields depending on its
406+
return type.
407+
- A {Path} immediately followed by a dot and a {SelectedObjectValue} to denote a
408+
nested object selection.
409+
- A {Path} immediately followed by a {SelectedListValue} to denote selection
410+
from a list.
411+
- A standalone {SelectedObjectValue}
404412

405413
In the following example, the value could be `title` when referring to a `Book`
406414
and `movieTitle` when referring to a `Movie`.

0 commit comments

Comments
 (0)