You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working with the original sample the message payload is { numberIncremented: 0 }, { numberIncremented: 1 }, { numberIncremented: 2 }, and so on. After adapting the sample the message payload received by the client is , { numberIncremented: null }
In incrementNumber I've tried sending obj, msg and the buffer as currently shown. Sending message yields the same result as sending the buffer, and sending obj results in a type exception from kafkajs due to the producer method expecting a string as it's input.
The text was updated successfully, but these errors were encountered:
I adapted the Apollo Group working sample, https://github.com/apollographql/docs-examples/blob/main/apollo-server/v3/subscriptions-graphql-ws/src/index.ts, to work with grapql-kafkajs-subscription and when I do that I receive an unexpected message on the subscribing client.
When working with the original sample the message payload is
{ numberIncremented: 0 }
,{ numberIncremented: 1 }
,{ numberIncremented: 2 }
, and so on. After adapting the sample the message payload received by the client is ,{ numberIncremented: null }
Here is the code that sets up the pubsub object
and here's the adapted incrementNumber method
In incrementNumber I've tried sending obj, msg and the buffer as currently shown. Sending message yields the same result as sending the buffer, and sending obj results in a type exception from kafkajs due to the producer method expecting a string as it's input.
The text was updated successfully, but these errors were encountered: