@@ -818,9 +818,8 @@ of rules must be adhered to by every Object type in a GraphQL schema.
818818 characters {"__ "} (two underscores).
819819 2 . The argument must accept a type where {IsInputType(argumentType)}
820820 returns {true}.
821- 3 . If the argument has a default value, {defaultValue} must be compatible
822- with {argumentType} as per the coercion rules for that type, and
823- coercion of {defaultValue} must not cause an infinite loop.
821+ 3 . If the argument has a default value it must be compatible with
822+ {argumentType} as per the coercion rules for that type.
8248233 . An object type may declare that it implements one or more unique interfaces.
8258244 . An object type must be a super-set of all interfaces it implements:
826825 1 . Let this object type be {objectType}.
@@ -1584,9 +1583,17 @@ Literal Value | Variables | Coerced Value
15841583 characters {"__" } (two underscores).
15851584 3. The input field must accept a type where {IsInputType (inputFieldType)}
15861585 returns {true }.
1587- 4. If the input field has a default value , {defaultValue } must be compatible
1588- with {inputFieldType } as per the coercion rules for that type , and
1589- coercion of {defaultValue } must not cause an infinite loop .
1586+ 4. If the input field has a non -null default value :
1587+ 1. {defaultValue } must be compatible with {inputFieldType } as per the
1588+ coercion rules for that type .
1589+ 2. If the input field references this Input Object either directly or
1590+ through referenced Input Objects , all input fields in the chain of
1591+ references which reference this Input Object must either :
1592+ 1. have no default value ; or
1593+ 2. have a {null } default value ; or
1594+ 3. have a default value , {nestedDefaultValue }, such that the value for
1595+ this field within {nestedDefaultValue } is either {null } or an empty
1596+ list .
159015973. If an Input Object references itself either directly or through referenced
15911598 Input Objects , at least one of the fields in the chain of references must be
15921599 either a nullable or a List type .
0 commit comments