69. Mutasjon: Slett "Photo"

Slett det valgte "Foto".

circle-info

Du må være eier for å slette et bilde.

"Fotoet" kan være koblet enten til "Notat" eller "Kommentar". Derfor er det obligatorisk å kontrollere attributtene uuid, noteUuid og commentUuid i svaret.

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

Sist oppdatert

Var dette nyttig?