Skip to main content

talawa-api / Exports / resolvers/Mutation/addUserToUserFamily

Module: resolvers/Mutation/addUserToUserFamily

Table of contents

Variables

Variables

addUserToUserFamily

Const addUserToUserFamily: MutationResolvers["addUserToUserFamily"]

This function adds user to the family.

Param

parent of current request

Param

payload provided with the request

Param

context of the entire application

Remarks

The following checks are done:

  1. If the family exists
  2. If the user exists
  3. If the user is already member of the family
  4. If the user is admin of the user Family

Defined in

src/resolvers/Mutation/addUserToUserFamily.ts:28