Skip to main content

filterFunction

talawa-apiDocs


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.

Defined in

src/resolvers/Subscription/messageSentToGroupChat.ts:15