talawa-api / Exports / resolvers/Subscription/messageSentToDirectChat
Module: resolvers/Subscription/messageSentToDirectChat
Table of contents
Variables
Functions
Variables
messageSentToDirectChat
• Const
messageSentToDirectChat: SubscriptionResolvers
["messageSentToDirectChat"
]
This property included a subscribe
method, which is used to
subscribe the receiver
and sender
to receive Direct Chat updates.
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/messageSentToDirectChat.ts:22
Functions
filterFunction
▸ filterFunction(payload
, context
): boolean
Parameters
Name | Type |
---|---|
payload | any |
context | any |
Returns
boolean