Skip to content

Latest commit

 

History

History
53 lines (30 loc) · 1.48 KB

resolvers_Subscription_onPluginUpdate.md

File metadata and controls

53 lines (30 loc) · 1.48 KB

talawa-api / Exports / resolvers/Subscription/onPluginUpdate

Module: resolvers/Subscription/onPluginUpdate

Table of contents

Variables

Functions

Variables

onPluginUpdate

Const onPluginUpdate: SubscriptionResolvers["onPluginUpdate"]

Defined in

src/resolvers/Subscription/onPluginUpdate.ts:28

Functions

filterFunction

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.

Parameters

Name Type
payload any
context any

Returns

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.

Defined in

src/resolvers/Subscription/onPluginUpdate.ts:19