Hello everyone, I'm having trouble creating a subs...
# orm-help
o
Hello everyone, I'm having trouble creating a subscription that can listen for deletions. The subscription fires when a deletion occurs, but the payload is always null. Here is my resolver.
e
after
.node()
try adding a fragment for what you want. i.e.
Copy code
.node().$fragment(`
      fragment ExampleFragment on pullRequest {
        id
        ...
      }
    `)
And the
resolve
would look like
Copy code
resolve: (payload: any) => {
      return payload
    },
This was the fix in my case, might be good food-for-thought
o
Thanks Evan I'll give that a try