メインコンテンツまでスキップ

Mutation - 댓글 삭제

폴더 / 파일에 작성된 댓글을 삭제한다.


Schema

GraphQL Schema Documentation


Input Objects

KEYOBJECTDESC
commentIdID댓글 아이디 (필수)
adminPageBoolean관리자 페이지 여부

Objects

OBJECTDESC
FsEntityCommentDto댓글 정보

Method

POST

{{url}}/graphql

Headers

KEYVALUE
AuthorizationSecurity365 JWT 토큰

Body

QUERY

mutation deleteComment($commentId: ID!, $adminPage: Boolean) {
deleteComment(commentId: $commentId, adminPage: $adminPage)
id
indexDate
createdDate
modifiedDate
createdUserId
createdUserName
contents
contentsDisplay
targetUserIds
__typename
}
}

Sample

VARIABLES

{
"commentId": "043589cbb32611ed990016ea3c3de916",
"adminPage": false
}

RESPONSE

{
"data": {
"deleteComment": {
"id": "043589cbb32611ed990016ea3c3de916",
"indexDate": 1677128506278,
"createdDate": 1677121137910,
"modifiedDate": 1677128506278,
"createdUserId": "1342ce6d6aea11ed8a7ebea82d4a5658",
"createdUserName": "user1",
"contents": "댓글변경",
"contentsDisplay": "댓글변경",
"targetUserIds": [],
"__typename": "FsEntityCommentDto"
}
}
}