diff --git a/src/message.ts b/src/message.ts index 8882151d..3b9fb3bb 100644 --- a/src/message.ts +++ b/src/message.ts @@ -120,10 +120,7 @@ export function isMessage(val: unknown): val is Message { case MessageType.Next: return ( hasOwnStringProperty(val, 'id') && - hasOwnObjectProperty(val, 'payload') && - // ExecutionResult - (hasOwnProperty(val.payload, 'data') || // data - hasOwnObjectProperty(val.payload, 'errors')) // or error(s) + hasOwnObjectProperty(val, 'payload') ); case MessageType.Error: return hasOwnStringProperty(val, 'id') && areGraphQLErrors(val.payload);