Closed glebsts closed 1 year ago
Hi, @glebsts. You can definitely specify an integer for the ID scalar type, your case should be related to the specific graphql implementation used, e.g. gengql
.
Input Coercion 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 service expects. Any other input value, including float input values (such as 4.0), must raise a request error indicating an incorrect type.
Hi there, First of all, thank you for great products!
I was composing a graphql payload for my tests having field of
ID
type, and when I Ctrl+clicked this type it brought me to plugin docs saying:So I bravely left
4
as my ID field. It broke on deserialization during test run, saying string was expected (usinggengql
for Go), so I went to graphql.org for truth and found there:Suggestion: improve docs removing mention of integer as a good value for standard
ID
scalar type.