69. طفرية: حذف "صورة"

حذف "الصورة" المحددة.

circle-info

يجب أن تكون المالك لحذف صورة.

يمكن ربط "الصورة" إما بـ "ملاحظة" أو "تعليق". لذلك من الضروري التحكم في السمات uuid و noteUuid و commentUuid في الاستجابة.

mutation DeleteNotePhotoSample {
  deletePhoto(input: {
    uuid: "<placeholder_for_photo_uuid>"
    noteUuid: "<placeholder_for_note_uuid>"
  }) {
    uuid
    noteUuid
    رابط
    تاريخ الإنشاء
    updatedDate
  }
}
mutation DeleteCommentPhotoSample {
  deletePhoto(input: {
    uuid: "<placeholder_for_photo_uuid>"
    noteUuid: "<placeholder_for_note_uuid>"
    commentUuid: "<placeholder_for_comment_uuid>"
  }) {
    uuid
    noteUuid
    commentUuid
    رابط
    تاريخ الإنشاء
    updatedDate
  }
}

Last updated

Was this helpful?