69. Mutation : supprimer une « Photo »

Supprimer la "Photo" sélectionnée.

circle-info

Vous devez être le Propriétaire pour supprimer une photo.

La "Photo" peut être liée soit à une "Note" soit à un "Commentaire". Il est donc obligatoire de vérifier les attributs uuid, noteUuid et commentUuid dans la réponse.

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

Mis à jour

Ce contenu vous a-t-il été utile ?