Commit 5c30d06
Jannis Pohlmann
subscriptions: Convert GraphQL errors to nil if they are empty
This reduces the likelyhood of servers that use graphqlws to send
an empty array of errors along with subscription updates to clients.
This also makes subscriptions work better in GraphiQL, where
previously, the empty array of errors would make
GraphiQL-Subscriptions-Fetcher would treat all updates as errors:
https://github.com/apollographql/GraphiQL-Subscriptions-Fetcher/blob/master/src/fetcher.ts#L36
(An empty array is considered truthy).1 parent decdb69 commit 5c30d06
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
| |||
0 commit comments