Skip to content

Commit 7133b59

Browse files
IvanGoncharovleebyron
authored andcommitted
Add example of negative integer coercion to ID (#480)
1 parent 760753e commit 7133b59

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

spec/Section 3 -- Type System.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -524,10 +524,11 @@ When coercion is not possible they must raise a field error.
524524

525525
**Input Coercion**
526526

527-
When expected as an input type, any string (such as `"4"`) or integer (such
528-
as `4`) input value should be coerced to ID as appropriate for the ID formats
529-
a given GraphQL server expects. Any other input value, including float input
530-
values (such as `4.0`), must raise a query error indicating an incorrect type.
527+
When expected as an input type, any string (such as `"4"`) or integer (such as
528+
`4` or `-4`) input value should be coerced to ID as appropriate for the ID
529+
formats a given GraphQL server expects. Any other input value, including float
530+
input values (such as `4.0`), must raise a query error indicating an incorrect
531+
type.
531532

532533

533534
### Scalar Extensions

0 commit comments

Comments
 (0)