Input Object Field Uniqueness
Formal Specification
- For each input object value inputObject in the document.
- For every
inputField
in
inputObject
- Let name be the Name of inputField .
- Let fields be all Input Object Fields named name in inputObject .
- fields must be the set containing only inputField .
Explanatory Text
Input objects must not contain more than one field of the same name, otherwise an ambiguity would exist which includes an ignored portion of syntax.
For example the following query will not pass validation.
{
field(arg: { field: true, field: false })
}