``` updateQuery: (previous, { subscriptionData }) ...
# orm-help
c
Copy code
updateQuery: (previous, { subscriptionData }) => {
              console.log(subscriptionData)
              console.log(previous, subscriptionData)
              const newAllLinks = [
                subscriptionData.data.newLink.node,
                ...previous.feed.links
              ]
              const result = {
                ...previous,
                feed: {
                  links: newAllLinks
                }
              }
              return result
            }
I keep getting:
Copy code
errorHandling.js?ace3:7 TypeError: Cannot read property 'node' of null
newLink
is null
n
is this a web app? Then you can inspect the WS Frames to investigate the response from the server
this might give us more insights into this problem 🙂
c
I found the issue. I am using apollo boost which does not currently support ws connection. Had to remove it and did things the usual way of importing tons of libraries lol
n
oh wow ok! Didn't know that thanks