For the complete documentation index, see llms.txt. This page is also available as Markdown.

69. Mutation: Slet "Photo"

Slet det valgte "Foto".

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
  }
}

Sidst opdateret

Var dette nyttigt?