Skip to content

Commit

Permalink
fix(types): path is required within incremental results (graphql#3961)
Browse files Browse the repository at this point in the history
extracted from graphql#3960

thanks @benjie for pointing this out!
  • Loading branch information
yaacovCR authored and sakesun committed Sep 1, 2023
1 parent 1ea5f01 commit 5fd2d44
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/execution/IncrementalPublisher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export interface IncrementalDeferResult<
> {
errors?: ReadonlyArray<GraphQLError>;
data: TData;
path?: ReadonlyArray<string | number>;
path: ReadonlyArray<string | number>;
extensions?: TExtensions;
}

Expand All @@ -110,7 +110,7 @@ export interface FormattedIncrementalDeferResult<
> {
errors?: ReadonlyArray<GraphQLFormattedError>;
data: TData;
path?: ReadonlyArray<string | number>;
path: ReadonlyArray<string | number>;
extensions?: TExtensions;
}

Expand All @@ -120,7 +120,7 @@ export interface IncrementalStreamResult<
> {
errors?: ReadonlyArray<GraphQLError>;
items: TData;
path?: ReadonlyArray<string | number>;
path: ReadonlyArray<string | number>;
extensions?: TExtensions;
}

Expand All @@ -130,7 +130,7 @@ export interface FormattedIncrementalStreamResult<
> {
errors?: ReadonlyArray<GraphQLFormattedError>;
items: TData;
path?: ReadonlyArray<string | number>;
path: ReadonlyArray<string | number>;
extensions?: TExtensions;
}

Expand Down

0 comments on commit 5fd2d44

Please sign in to comment.