+25
-1
lines changedFilter options
+25
-1
lines changed Original file line number Diff line number Diff line change
@@ -712,7 +712,6 @@ ObjectValue : { ObjectField+ }
712
712
* Let {inputObject} be a new input object value with no fields.
713
713
* For each {field} in {ObjectField+}
714
714
* Let {name} be {Name} in {field}.
715
-
* If {inputObject} contains a field named {name} throw Syntax Error.
716
715
* Let {value} be the result of evaluating {Value} in {field}.
717
716
* Add a field to {inputObject} of name {name} containing value {value}.
718
717
* Return {inputObject}
Original file line number Diff line number Diff line change
@@ -1028,6 +1028,31 @@ fragment sentientFragment on Sentient {
1028
1028
is not valid because there exists no type that implements both {Pet}
1029
1029
and {Sentient}.
1030
1030
1031
+
## Values
1032
+
1033
+
### Input Object Field Uniqueness
1034
+
1035
+
** Formal Specification **
1036
+
1037
+
* For each input object value {inputObject} in the document.
1038
+
* For every {inputField} in {inputObject}
1039
+
* Let {name} be the Name of {inputField}.
1040
+
* Let {fields} be all Input Object Fields named {name} in {inputObject}.
1041
+
* {fields} must be the set containing only {inputField}.
1042
+
1043
+
** Explanatory Text **
1044
+
1045
+
Input objects must not contain more than one fields of the same name, otherwise
1046
+
an amgibuity would exist which includes an ignored portion of syntax.
1047
+
1048
+
For example the following query will not pass validation.
1049
+
1050
+
```graphql
1051
+
{
1052
+
field(arg: { field: true, field: false })
1053
+
}
1054
+
```
1055
+
1031
1056
## Directives
1032
1057
1033
1058
### Directives Are Defined
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4