Skip to main content

Query - 댓글 조회

댓글 목록을 조회한다.


Schema

GraphQL Schema Documentation


Input Objects

KEYOBJECTDESC
idID폴더 / 파일 아이디
fullPathString조회 폴더 / 파일 경로 (필수)
dateLong조회 기준 시간 (millisecond)
sizeInt조회할 수
adminPageBoolean관리자 페이지 여부

Objects

OBJECTDESC
FsEntityCommentDto댓글 정보

Method

POST

{{url}}/graphql

Headers

KEYVALUE
AuthorizationSecurity365 JWT 토큰

Body

QUERY

query comments($id: ID, $fullPath: String!, $date: Long, $size: Int, $adminPage: Boolean) {
comments(id: $id, fullPath: $fullPath, date: $date, size: $size, adminPage: $adminPage) {
id
indexDate
createdDate
modifiedDate
createdUserId
createdUserName
contents
contentsDisplay
targetUserIds
entity {
id
__typename
}
__typename
}
}

Sample

VARIABLES

{
"fullPath": "/folder/NAS/[한국정보인증] OTP 사용자 매뉴얼_GT4.1_v1.3.pptx",
"date": 0,
"size": 15,
"adminPage": false
}

RESPONSE

{
"data": {
"comments": [
{
"id": "0a56b47eb18e11edbde6165440fb7414",
"indexDate": 1676945913528,
"createdDate": 1676945913528,
"modifiedDate": 1676945913528,
"createdUserId": "1342ce6d6aea11ed8a7ebea82d4a5658",
"createdUserName": "user1",
"contents": "하나더 작성합니다.",
"contentsDisplay": "하나더 작성합니다.",
"targetUserIds": [],
"entity": {
"id": "aa289990446011ed8963ced1badd708e",
"__typename": "FsEntityDto"
},
"__typename": "FsEntityCommentDto"
},
{
"id": "05369a08b18e11edbde6165440fb7414",
"indexDate": 1676945904929,
"createdDate": 1676945904929,
"modifiedDate": 1676945904929,
"createdUserId": "1342ce6d6aea11ed8a7ebea82d4a5658",
"createdUserName": "user1",
"contents": "댓글입니다.\n",
"contentsDisplay": "댓글입니다.\n",
"targetUserIds": [],
"entity": {
"id": "aa289990446011ed8963ced1badd708e",
"__typename": "FsEntityDto"
},
"__typename": "FsEntityCommentDto"
}
]
}
}