Skip to content

Commit c99e323

Browse files
robrichardbenjie
andauthored
Apply suggestions from code review
Co-authored-by: Benjie <[email protected]>
1 parent 2087016 commit c99e323

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

spec/Section 7 -- Response.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ If an error can be associated to a particular field in the GraphQL result, it
108108
must contain an entry with the key `path` that details the path of the response
109109
field which experienced the error. This allows clients to identify whether a
110110
`null` result is intentional or caused by a runtime error. The value of this
111-
entry is described in the [Path](#sec-Path) section.
111+
_path entry_ is described in the [Path](#sec-Path) section.
112112

113113
For example, if fetching one of the friends' names fails in the following
114114
operation:
@@ -240,15 +240,17 @@ discouraged.
240240

241241
### Path
242242

243-
:: A _path entry_ allows for the association with a particular field reached
244-
during GraphQL execution. The value for this entry must be a list of path
245-
segments starting at the root of the response and ending with the field to be
246-
associated with. Path segments that represent fields must be strings, and path
247-
segments that represent list indices must be 0-indexed integers. If a path
248-
segment is associated with an aliased field it must use the aliased name, since
249-
it represents a path in the response, not in the request.
243+
:: A _path entry_ is an entry within an _error result_ that allows for
244+
association with a particular field reached during GraphQL execution.
250245

251-
When the _path entry_ is present on an "Error result", it identifies the
246+
The value for a _path entry_ must be a list of path segments starting at the
247+
root of the response and ending with the field to be associated with. Path
248+
segments that represent fields must be strings, and path segments that represent
249+
list indices must be 0-indexed integers. If a path segment is associated with an
250+
aliased field it must use the aliased name, since it represents a path in the
251+
response, not in the request.
252+
253+
When the _path entry_ is present on an _error result_, it identifies the
252254
response field which experienced the error.
253255

254256
## Serialization Format

0 commit comments

Comments
 (0)