Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit d1229c2

Browse files
committed
fix: Fix graphql filter not detecting the validation error
1 parent 2dd7d6f commit d1229c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gql-validation.filter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class GraphqlValidationFilter implements GqlExceptionFilter {
1111
if (
1212
Array.isArray(response.message) &&
1313
Array.isArray(response.message[0].errors) &&
14-
typeof response.message[0].field === 'string'
14+
typeof response.message[0].path === 'string'
1515
) {
1616
return {
1717
userErrors: response.message.map((error: any) => ({

0 commit comments

Comments
 (0)