diff --git a/packages/apollo/lib/drivers/apollo-base.driver.ts b/packages/apollo/lib/drivers/apollo-base.driver.ts index 85e7f0105..690b9c8e1 100644 --- a/packages/apollo/lib/drivers/apollo-base.driver.ts +++ b/packages/apollo/lib/drivers/apollo-base.driver.ts @@ -18,6 +18,7 @@ import { createAsyncIterator } from '../utils/async-iterator.util'; const apolloPredefinedExceptions: Partial> = { [HttpStatus.BAD_REQUEST]: ApolloServerErrorCode.BAD_REQUEST, + [HttpStatus.UNPROCESSABLE_ENTITY]: ApolloServerErrorCode.BAD_USER_INPUT, [HttpStatus.UNAUTHORIZED]: 'UNAUTHENTICATED', [HttpStatus.FORBIDDEN]: 'FORBIDDEN', };