Skip to content

Latest commit

History

History
6 lines (5 loc) 路 609 Bytes

tiny-deers-compare.md

File metadata and controls

6 lines (5 loc) 路 609 Bytes
@apollo/server-integration-testsuite @apollo/server
patch
patch

Apollo Server tries to detect if execution errors are variable coercion errors in order to give them a code extension of BAD_USER_INPUT rather than INTERNAL_SERVER_ERROR. Previously this would unconditionally set the code; now, it only sets the code if no code is already set, so that (for example) custom scalar parseValue methods can throw errors with specific codes. (Note that a separate graphql-js bug can lead to these extensions being lost; see graphql/graphql-js#3785 for details.)