You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Spec edits to reduce "query ambiguity"
* Editorialize change sites
I went through this editorial in two passes. One where I tuned the usage of "operation", "request", and "selection set". I hopefully made these spots slightly clearer, but I'm open to feedback. Second pass was more freeform prose edits in cases where I thought the intended ideas could have been clearer and avoid the query ambiguity in the first place.
Co-authored-by: Lee Byron <lee.byron@robinhood.com>
Values for those variables are provided to a GraphQL service along with a
1115
-
request so they may be substituted during execution. If providing JSON for the
1116
-
variables' values, we could run this query and request profilePic of
1117
-
size `60` width:
1116
+
If providing JSON for the variables' values, we could request a `profilePic` of
1117
+
size `60`:
1118
1118
1119
1119
```json example
1120
1120
{
@@ -1124,11 +1124,10 @@ size `60` width:
1124
1124
1125
1125
**Variable use within Fragments**
1126
1126
1127
-
Query variables can be used within fragments. Query variables have global scope
1128
-
with a given operation, so a variable used within a fragment must be declared
1129
-
in any top-level operation that transitively consumes that fragment. If
1130
-
a variable is referenced in a fragment and is included by an operation that does
1131
-
not define that variable, the operation cannot be executed.
1127
+
Variables can be used within fragments. Variables have global scope with a given operation, so a variable used within a fragment must be declared in any
1128
+
top-level operation that transitively consumes that fragment. If a variable is
1129
+
referenced in a fragment and is included by an operation that does not define
1130
+
that variable, that operation is invalid (see [All Variable Uses Defined](#sec-All-Variable-Uses-Defined)).
1132
1131
1133
1132
1134
1133
## Type References
@@ -1146,9 +1145,9 @@ NonNullType :
1146
1145
- NamedType !
1147
1146
- ListType !
1148
1147
1149
-
GraphQL describes the types of data expected by query variables. Input types
1150
-
may be lists of another input type, or a non-null variant of any other
1151
-
input type.
1148
+
GraphQL describes the types of data expected by arguments and variables.
1149
+
Input types may be lists of another input type, or a non-null variant of any
1150
+
other input type.
1152
1151
1153
1152
**Semantics**
1154
1153
@@ -1188,8 +1187,8 @@ including or skipping a field. Directives provide this by describing additional
1188
1187
Directives have a name along with a list of arguments which may accept values
1189
1188
of any input type.
1190
1189
1191
-
Directives can be used to describe additional information for types, fields, fragments
1192
-
and operations.
1190
+
Directives can be used to describe additional information for types, fields,
1191
+
fragments and operations.
1193
1192
1194
1193
As future versions of GraphQL adopt new configurable execution capabilities,
1195
1194
they may be exposed via directives. GraphQL services and tools may also provide
0 commit comments