Skip to content

Latest commit

 

History

History
53 lines (30 loc) · 1.57 KB

resolvers_Subscription_messageSentToDirectChat.md

File metadata and controls

53 lines (30 loc) · 1.57 KB

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:21

Functions

filterFunction

filterFunction(payload, context): boolean

Parameters

Name Type
payload any
context any

Returns

boolean

Defined in

src/resolvers/Subscription/messageSentToDirectChat.ts:6