talawa-api / Exports / resolvers/Subscription/messageSentToGroupChat
Module: resolvers/Subscription/messageSentToGroupChat
Table of contents
Variables
Functions
Variables
messageSentToGroupChat
• Const
messageSentToGroupChat: SubscriptionResolvers
["messageSentToGroupChat"
]
This property included a subscribe
method, which is used to
subscribe the current_user
to get updates for Group chats.
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.
Defined in
src/resolvers/Subscription/messageSentToGroupChat.ts:36
Functions
filterFunction
▸ filterFunction(payload
, context
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
payload | any |
context | any |
Returns
Promise
<boolean
>