Magidoc

deleteTimesheet
Mutation

Used for deleting timesheets in "timesheet" tab in "Timesheets" app.

Access: It requires user access.

Deleting a timesheet that is already deleted (or never existed) is an idempotent no-op that returns the current document (or null).

Errors: Returns specific expected errors if: user is not timesheet submitter

Arguments

#

_id

ID !
Non-null

timesheetId to delete

workspaceId

ID !
Non-null

workspace associated with timesheet

Response

#

Returns Timesheet .

Example

#