69. Mutation: Delete "Photo"

Delete the selected "Photo".

You should be the Owner to delete a photo.

The "Photo" can be linked either to "Note" or "Comment". Therefore it is mandatory to control the uuid, noteUuid and commentUuid attributes in the response.

mutation DeleteNotePhotoSample {
  deletePhoto(input: {
    uuid: "<placeholder_for_photo_uuid>"
    noteUuid: "<placeholder_for_note_uuid>"
  }) {
    uuid
    noteUuid
    url
    createdDate
    updatedDate
  }
}
mutation DeleteCommentPhotoSample {
  deletePhoto(input: {
    uuid: "<placeholder_for_photo_uuid>"
    noteUuid: "<placeholder_for_note_uuid>"
    commentUuid: "<placeholder_for_comment_uuid>"
  }) {
    uuid
    noteUuid
    commentUuid
    url
    createdDate
    updatedDate
  }
}

Last updated

Powered by GeoPard Agriculture - Automated precisionAg platform