Shouldn't ScalarType::parseValue throw UserError instead of Error? #1043
-
Hello, I have this problem: When a client sends a string instead of an integer as input ("10" vs 10), IntType throws a GraphQL\Error\Error and pollutes the log. I don't want to log this errors. I need a way to distinguish errors due to user sending wrong input from other internal errors. Shouldn't ScalarType::parseValue throw UserError instead of Error, or am I wrong? I would appreciate some feedback on this. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
See graphql-php/src/Error/Error.php Lines 21 to 22 in 7cd7412
Then don't. |
Beta Was this translation helpful? Give feedback.
See
graphql-php/src/Error/Error.php
Lines 21 to 22 in 7cd7412
Then don't.