OBJECT

AllocationMutation

Mutations that act on Allocations.

link GraphQL Schema definition

  • type AllocationMutation {
  • # Deletes an allocation. This action is irreversible.
  • #
  • # Arguments
  • # id: The ID of the allocation to delete.
  • delete(id: Int!): SuccessResult
  • # Deletes a list of allocations. This action is irreversible.
  • #
  • # Arguments
  • # ids: A list of allocation ids to delete.
  • deleteMany(ids: [Int]!): SuccessResults
  • # Creates a new allocation.
  • #
  • # Arguments
  • # allocation: The details for the allocation to create
  • create(allocation: AllocationCreate!): SuccessResults
  • # Updates an existing allocation (order-resource-date) with a new worker
  • # (order-resource).
  • #
  • # Arguments
  • # allocationId: The ID of the order resource data (allocation).
  • # workerId: The ID of the NEW worker (user) swapped with EXISTING
  • # worker (user)
  • swapWorker(allocationId: Int!, workerId: Int!): SuccessResult
  • }