Int cannot represent non 32-bit signed integer value: 1234567893333333 returns a 400 status code, correct? #7362
Unanswered
magnusottosson
asked this question in
General
Replies: 1 comment 4 replies
-
This operation fails to validate against your schema, because what you've provided is not an Int. (It would be the same issue if you had put a string there, say.) As documented at https://www.apollographql.com/docs/apollo-server/data/errors#setting-http-status-code-and-headers Apollo Server's default behavior for parse and validation failures is a 400 error. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a simpel schema like
and try to request this using:
This will return an error since the client tries to fetch data using something that is not an
Int
. The response will be something like:The default Apollo server will return this error with status code 400? Is that correct? I would have expected a 200 since the query is kind of correct... or is it not?
Beta Was this translation helpful? Give feedback.
All reactions