Skip to main content

talawa-api / Exports / resolvers/Mutation/updateFundraisingCampaign

Module: resolvers/Mutation/updateFundraisingCampaign

Table of contents

Variables

Variables

updateFundraisingCampaign

Const updateFundraisingCampaign: MutationResolvers["updateFundraisingCampaign"]

This function enables to update a fundraising campaign.

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 user exists.
  2. If the FundraisingCampaign exists.
  3. If the user is authorized to update the fundraising campaign.
  4. If the fundraising campaign already exists with the same name.
  5. If the start date is valid.
  6. If the end date is valid.

Defined in

src/resolvers/Mutation/updateFundraisingCampaign.ts:35