GeoPard Tutorials
Ask or search…
⌃K

69. Mutation: Delete "Photo"

Delete the selected "Photo".
You should be the Owner to delete a photo.
The "Photo" can be linked either to "Note" or "Comment". Therefore it is mandatory to control the uuid, noteUuid and commentUuid attributes in the response.
1
mutation DeleteNotePhotoSample {
2
deletePhoto(input: {
3
uuid: "<placeholder_for_photo_uuid>"
4
noteUuid: "<placeholder_for_note_uuid>"
5
}) {
6
uuid
7
noteUuid
8
url
9
createdDate
10
updatedDate
11
}
12
}
1
mutation DeleteCommentPhotoSample {
2
deletePhoto(input: {
3
uuid: "<placeholder_for_photo_uuid>"
4
noteUuid: "<placeholder_for_note_uuid>"
5
commentUuid: "<placeholder_for_comment_uuid>"
6
}) {
7
uuid
8
noteUuid
9
commentUuid
10
url
11
createdDate
12
updatedDate
13
}
14
}
15
​