talawa-api / Exports / resolvers/Subscription/onPluginUpdate
• Const
onPluginUpdate: SubscriptionResolvers
["onPluginUpdate"
]
src/resolvers/Subscription/onPluginUpdate.ts:28
▸ filterFunction(payload
, context
): Promise
<boolean
>
This property included a subscribe
method, which is used to
subscribe the current_user
to get updates for Group chats.
Name | Type |
---|---|
payload |
any |
context |
any |
Promise
<boolean
>
Remarks
To control updates on a per-client basis, the function uses the withFilter
method imported from apollo-server-express
module.
You can learn about subscription
here.