Skip to main content

removeUserFromUserFamily

talawa-apiDocs


talawa-api / resolvers/Mutation/removeUserFromUserFamily / removeUserFromUserFamily

Variable: removeUserFromUserFamily

> const removeUserFromUserFamily: MutationResolvers["removeUserFromUserFamily"]

This function enables to remove a user from group chat.

Param

parent of current request

Param

payload provided with the request

Param

context of entire publication

Remarks

The following checks are done:

  1. If the family exists.
  2. If the user to be removed is member of the organisation.
  3. If the user is admin of the family

Returns

Updated group chat.

Defined in

src/resolvers/Mutation/removeUserFromUserFamily.ts:29