Skip to content

Commit

Permalink
fix(common): Fix the FormattedExecutionResult.errors type (#621)
Browse files Browse the repository at this point in the history
Co-authored-by: Denis Badurina <denis@denelop.com>
  • Loading branch information
pleunv and enisdenjo authored Jan 21, 2025
1 parent e1ec851 commit 6b180e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/eleven-bears-warn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'graphql-ws': patch
---

FormattedExecutionResult errors field returns GraphQLFormattedError
2 changes: 1 addition & 1 deletion src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export interface FormattedExecutionResult<
Data = Record<string, unknown>,
Extensions = Record<string, unknown>,
> {
errors?: ReadonlyArray<FormattedExecutionResult> | undefined;
errors?: ReadonlyArray<GraphQLFormattedError> | undefined;
data?: Data | null | undefined;
hasNext?: boolean | undefined;
extensions?: Extensions | undefined;
Expand Down

0 comments on commit 6b180e8

Please sign in to comment.