Open thespacedeck opened 3 years ago
Hi @thespacedeck -- You may have already found it, but check out the discussion in https://github.com/axelspringer/graphql-google-pubsub/issues/14.
I ran into this as well and fixed it with the suggestion of adding this to the schema:
...
resolve: (payload) => {
const utf8 = Buffer.from(payload.data, "base64").toString("utf-8");
return JSON.parse(utf8);
},
subscribe: withFilter(
....
Hi @kacy, thanks for that - adding the resolve did it for me! Rgds.
Hi @thespacedeck -- You may have already found it, but check out the discussion in #14.
I ran into this as well and fixed it with the suggestion of adding this to the schema:
... resolve: (payload) => { const utf8 = Buffer.from(payload.data, "base64").toString("utf-8"); return JSON.parse(utf8); }, subscribe: withFilter( ....
Life changing.. After 3 days of scratching my head and trying all possible tricks to figure out why "null" was returned.. This was the answer and now it is working as expected.
Hi there,
My luck that this is not maintained anymore.... :/
If anyone would be able to assist it would be great:
results in organizationsChanged to be null:
Project setup is as follows: