Mutation - 댓글 변경
폴더 / 파일에 작성된 댓글을 변경한다.
Schema
Input Objects
KEY OBJECT DESC commentIdID 댓글 아이디 (필수) contentsString 댓글 내용 (필수) adminPage Boolean 관리자 페이지 여부
Objects
OBJECT DESC FsEntityCommentDto 댓글 정보
Method
POST
{{url}}/graphql
Headers
KEY VALUE AuthorizationSecurity365 JWT 토큰
Body
QUERY
mutation updateComment($commentId: ID!, $contents: String!, $adminPage: Boolean) {
updateComment(commentId: $commentId, contents: $contents, adminPage: $adminPage) {
id
indexDate
createdDate
modifiedDate
createdUserId
createdUserName
contents
contentsDisplay
targetUserIds
__typename
}
}
Sample
VARIABLES
{
"commentId": "043589cbb32611ed990016ea3c3de916",
"contents": "댓글변경",
"adminPage": false
}RESPONSE
{
"data": {
"updateComment": {
"id": "043589cbb32611ed990016ea3c3de916",
"indexDate": 1677128506278,
"createdDate": 1677121137910,
"modifiedDate": 1677128506278,
"createdUserId": "1342ce6d6aea11ed8a7ebea82d4a5658",
"createdUserName": "user1",
"contents": "댓글변경",
"contentsDisplay": "댓글변경",
"targetUserIds": [],
"__typename": "FsEntityCommentDto"
}
}
}