Skip to content

Commit

Permalink
Add example of negative integer coercion to ID (#480)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov authored and leebyron committed Oct 2, 2018
1 parent 760753e commit 7133b59
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions spec/Section 3 -- Type System.md
Original file line number Diff line number Diff line change
Expand Up @@ -524,10 +524,11 @@ When coercion is not possible they must raise a field error.

**Input Coercion**

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


### Scalar Extensions
Expand Down

0 comments on commit 7133b59

Please sign in to comment.