We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When need send message, how to filter the target to get data? I only find follow code async filter(root, args, context) { return { error: false, } }, for example, is there have like pubsub.asyncIterator(triggers).next()to find the target?
async filter(root, args, context) { return { error: false, } },
import { withFilter } from 'graphql-subscriptions' subscribe: withFilter( () => pubsub.asyncIterator('NEW_MESSAGE'), (payload, variables) => { console.log('---------------messageFeed start-------------------') console.log('::Subscription subscribe payload 发消息方:%s \nvariables 订阅收消息方:%s', payload, variables)
Then, When i get payload and variables data, i can compare if neet subscription message.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When need send message, how to filter the target to get data?
I only find follow code
async filter(root, args, context) { return { error: false, } },
for example, is there have like pubsub.asyncIterator(triggers).next()to find the target?
Then, When i get payload and variables data, i can compare if neet subscription message.
The text was updated successfully, but these errors were encountered: