OBJECT

UserMutation

Mutations that act on Users.

link GraphQL Schema definition

  • type UserMutation {
  • # Create a presigned url that users can upload profile images directly to.
  • #
  • # Arguments
  • # filename: The name of the profile image file to create a
  • # presigned url for
  • createSignedUrl(filename: String!): SignedUrl
  • # Updates unavailability of a user.
  • #
  • # Arguments
  • # id: The user ID
  • # unavailability: Weekly unavailability of the user.
  • updateUnavailability(
  • id: Int,
  • unavailability: UserUnavailabilityUpdate!
  • ): SuccessResult
  • # Updates another user's password.
  • #
  • # Arguments
  • # id: The ID of the document.
  • # password: The user's new password.
  • updatePassword(id: Int!, password: String!): SuccessResult
  • # Updates the user's own password.
  • #
  • # Arguments
  • # password: The user's new password.
  • updateOwnPassword(password: String!): SuccessResult
  • # Deletes a user. This action is irreversible.
  • #
  • # Arguments
  • # id: The ID of the user to delete.
  • delete(id: Int!): SuccessResult
  • # Marks a user as archived.
  • #
  • # Arguments
  • # id: The ID of the user to archive.
  • archive(id: Int!): SuccessResult
  • # Creates a new user.
  • #
  • # Arguments
  • # user: The data to use for the creation
  • create(user: UserCreate!): SuccessResult
  • # Updates an existing user.
  • #
  • # Arguments
  • # user: The data to use for editing the user
  • update(user: UserUpdate!): SuccessResult
  • # Marks a user as archived.
  • #
  • # Arguments
  • # id: The ID of the user to archive.
  • restore(id: Int!): SuccessResult
  • # Deregisters a device from our push notification service.
  • #
  • # Arguments
  • # input: The device ID input that is used to deregister the
  • # selected.
  • deregisterUserDevice(input: DeregisterDeviceInput): DeregisterDeviceSuccessResult
  • # Registers a users device to be used for our push notification service.
  • #
  • # Arguments
  • # input: The device ID and service that you want the device to be
  • # registerd to.
  • registerUserDevice(input: RegisterDeviceInput): RegisterDeviceSuccessResult
  • # Updates a registered users device to be used for our push notification service.
  • #
  • # Arguments
  • # input: The device ID input used to update a registered device.
  • updateUserDevice(input: UpdateDeviceInput): UpdateDeviceSuccessResult
  • }