filterFunction
talawa-api • Docs
talawa-api / resolvers/Subscription/messageSentToGroupChat / filterFunction
Function: filterFunction()
> filterFunction(payload
, variables
): Promise
<boolean
>
This function is used to filter the subscription payload based on the current user's membership in the group chat.
Parameters
• payload: any
The payload of the subscription message.
• variables: any
Returns
Promise
<boolean
>
A promise that resolves to a boolean value indicating whether the current user is a member of the group chat.