69. Mutatie: verwijder "Photo"

Verwijder de geselecteerde "Foto".

circle-info

Je moet de Eigenaar zijn om een foto te verwijderen.

De "Foto" kan gekoppeld zijn aan ofwel "Notitie" of "Opmerking". Daarom is het verplicht om de attributen uuid, noteUuid en commentUuid in de respons te controleren.

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

Laatst bijgewerkt

Was dit nuttig?