Skip to content

Commit 7ba7365

Browse files
committed
Default value coercion rules
1 parent d388f13 commit 7ba7365

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

spec/Section 3 -- Type System.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -917,6 +917,10 @@ May yield the result:
917917
The type of an object field argument must be an input type (any type except an
918918
Object, Interface, or Union type).
919919

920+
**Default Value Coercion**
921+
922+
Where an argument specifies a default value, that value should be coerced
923+
according to the input coercion rules of the argument's type.
920924

921925
### Field Deprecation
922926

@@ -1448,6 +1452,11 @@ define arguments or contain references to interfaces and unions, neither of
14481452
which is appropriate for use as an input argument. For this reason, input
14491453
objects have a separate type in the system.
14501454

1455+
**Default Value Coercion**
1456+
1457+
Where a field in an input object specifies a default value, that value should
1458+
be coerced according to the input coercion rules of the field's type.
1459+
14511460
**Result Coercion**
14521461

14531462
An input object is never a valid result. Input Object types cannot be the return

0 commit comments

Comments
 (0)