Skip to main content

talawa-api / Exports / resolvers/Mutation/createEventProject

Module: resolvers/Mutation/createEventProject

Table of contents

Functions

Functions

createEventProject

createEventProject(_parent, args, context): Promise<LeanDocument<Interface_EventProject & Document<any, any, Interface_EventProject>>>

This function enables to create an event project.

Remarks

The following checks are done:

  1. If the user exists
  2. If the event exists
  3. If the user is an admin of the event.

Parameters

NameTypeDescription
_parentanyparent of current request
argsanypayload provided with the request
contextanycontext of entire application

Returns

Promise<LeanDocument<Interface_EventProject & Document<any, any, Interface_EventProject>>>

Created event project

Defined in

src/resolvers/Mutation/createEventProject.ts:19