69. Mutation: Slet "Photo"

Slet det valgte "Foto".

circle-info

Du skal være ejer for at slette et foto.

"Fotoet" kan være knyttet enten til "Note" eller "Kommentar". Derfor er det nødvendigt at kontrollere attributterne uuid, noteUuid og commentUuid i svaret.

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

Last updated

Was this helpful?