Skip to content

Commit

Permalink
Update src/utilities/common/incrementalResult.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Newman <ben@apollographql.com>
  • Loading branch information
alessbell and benjamn authored Mar 30, 2023
1 parent 8f6f693 commit 97e4e60
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/utilities/common/incrementalResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ export function isExecutionPatchResult<T>(
export function isApolloPayloadResult(
value: unknown
): value is ApolloPayloadResult {
return (
isNonNullObject(value) &&
("payload" in value || ("done" in value && typeof value.done === "boolean"))
);
return isNonNullObject(value) && "payload" in value;
}

export function mergeIncrementalData<TData extends object>(
Expand Down

0 comments on commit 97e4e60

Please sign in to comment.