Skip to main content

Query - 폴더 트리 조회

폴더 트리를 조회한다.


Schema

GraphQL Schema Documentation


Input Objects

KEYOBJECTDESC
pathString조회 폴더 경로 (필수)
includeAllChildBoolean하위 전체 조회는 true, 하위 1뎁스 조회는 false
adminPageBoolean관리자 페이지 여부

Objects

OBJECTDESC
FsEntityDto폴더 / 파일 정보

Method

POST

{{url}}/graphql

Headers

KEYVALUE
AuthorizationSecurity365 JWT 토큰

Body

QUERY

query folders($path: String!, $includeAllChild: Boolean, $adminPage: Boolean) {
folders(path: $path, includeAllChild: $includeAllChild, adminPage: $adminPage) {
id
indexDate
deleteKey
storageId
interlockId
realPath
displayPath
storageEntityId
type
realName
displayName
description
tag
size
createdDate
createdUserId
createdUserName
modifiedDate
modifiedUserId
modifiedUserName
status
statusReqDate
statusResDate
folderInfo {
type
shareFolderInfo {
bgImage
labels {
id
name
color
__typename
}
members {
id
name
role
createdDate
__typename
}
teamId
type
__typename
}
shareChannelInfo {
channelId
membershipType
__typename
}
shareListInfo {
pos
__typename
}
shareCardInfo {
labelId
pos
__typename
}
__typename
}
acl {
id
targetType
targetId
authFlag
order
refernceId
__typename
}
folderIncluded
__typename
}
}

Sample

VARIABLES

{
"path": "/folder",
"includeAllChild": false,
"adminPage": false
}

RESPONSE

{
"data": {
"folders": [
{
"id": "ddccb217d7d811ecb289c25abb0846ce",
"indexDate": 1659490117641,
"deleteKey": "",
"storageId": "NAS",
"interlockId": "M_NAS_a4739022d7d711ecb289c25abb0846ce",
"realPath": "/shieldrive_folder/17",
"displayPath": "/folder",
"storageEntityId": null,
"type": 0,
"realName": "ddccb217d7d811ecb289c25abb0846ce",
"displayName": "NAS",
"description": "",
"tag": "",
"size": 0,
"createdDate": 1653008697574,
"createdUserId": "cd338babd0c311eca7d32a9a2470adc3",
"createdUserName": "최고관리자",
"modifiedDate": 1653008697574,
"modifiedUserId": "8239b9b2ed1511ecbf494657c4f20301",
"modifiedUserName": "최고관리자",
"status": 0,
"statusReqDate": 0,
"statusResDate": 0,
"folderInfo": {
"type": "FOLDER",
"shareFolderInfo": null,
"shareChannelInfo": null,
"shareListInfo": null,
"shareCardInfo": null,
"__typename": "FsEntityFolderInfoDto"
},
"acl": {
"id": "3a0ad94c2da011edb82afa7c5f9e51c1",
"targetType": 2,
"targetId": "wEtnSvSC-4LfiPOBO-p1U9SafN-oMWNA33V",
"authFlag": 15,
"order": 2,
"refernceId": "3a0ad94c2da011edb82afa7c5f9e51c1",
"__typename": "FsEntityAclDto"
},
"folderIncluded": true,
"__typename": "FsEntityDto"
},
{
"id": "30c4cba928f711edb7558622a4747029",
"indexDate": 1671759516164,
"deleteKey": "",
"storageId": "NAS",
"interlockId": "M_NAS_a4739022d7d711ecb289c25abb0846ce",
"realPath": "/shieldrive_folder/a9",
"displayPath": "/folder",
"storageEntityId": null,
"type": 0,
"realName": "30c4cba928f711edb7558622a4747029",
"displayName": "NAS이름변경",
"description": "",
"tag": "",
"size": 0,
"createdDate": 1661927765859,
"createdUserId": "8239b9b2ed1511ecbf494657c4f20301",
"createdUserName": "최고관리자",
"modifiedDate": 1661927765859,
"modifiedUserId": "8239b9b2ed1511ecbf494657c4f20301",
"modifiedUserName": "최고관리자",
"status": 0,
"statusReqDate": 0,
"statusResDate": 0,
"folderInfo": {
"type": "FOLDER",
"shareFolderInfo": null,
"shareChannelInfo": null,
"shareListInfo": null,
"shareCardInfo": null,
"__typename": "FsEntityFolderInfoDto"
},
"acl": {
"id": "3b430b4c2da011edb82afa7c5f9e51c1",
"targetType": 2,
"targetId": "wEtnSvSC-4LfiPOBO-p1U9SafN-oMWNA33V",
"authFlag": 15,
"order": 2,
"refernceId": "3b430b4c2da011edb82afa7c5f9e51c1",
"__typename": "FsEntityAclDto"
},
"folderIncluded": true,
"__typename": "FsEntityDto"
}
]
}
}