Skip to main content

talawa-api / Exports / resolvers/Mutation/createEventVolunteer

Module: resolvers/Mutation/createEventVolunteer

Table of contents

Variables

Variables

createEventVolunteer

Const createEventVolunteer: MutationResolvers["createEventVolunteer"]

This function enables to create an event volunteer.

Param

parent of current request

Param

payload provided with the request

Param

context of entire application

Remarks

The following checks are done:

  1. If the current user exists
  2. if the volunteer user exists
  3. If the event exists
  4. If the group exists
  5. If the current user is leader of the group

Defined in

src/resolvers/Mutation/createEventVolunteer.ts:27