본문으로 건너뛰기

Query - 검색

폴더, 파일, 댓글을 검색한다.


Schema

GraphQL Schema Documentation


Input Objects

KEYOBJECTDESC
filterSearchFilterInput검색용 필터 옵션 (필수)
adminPageBoolean관리자 페이지 여부

Objects

OBJECTDESC
SearchResultsDto검색 결과 정보

Method

POST

{{url}}/graphql

Headers

KEYVALUE
AuthorizationSecurity365 JWT 토큰

Body

QUERY

query search($filter: SearchFilterInput!, $adminPage: Boolean) {
search(filter: $filter, adminPage: $adminPage) {
file {
total
page
size
results {
id
indexDate
deleteKey
storageId
realPath
displayPath
storageEntityId
type
realName
displayName
description
tag
size
status
createdDate
createdUserId
createdUserName
modifiedDate
modifiedUserId
modifiedUserName
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
}
fileInfo {
type
hash
contents
revision
revisionWeight
encrypted
thumbs
extractionStatus
extractionMsg
extractionReqDate
extractionResDate
__typename
}
acl {
id
targetType
targetId
authFlag
order
refernceId
__typename
}
__typename
}
__typename
}
folder {
total
page
size
results {
id
indexDate
deleteKey
storageId
realPath
displayPath
storageEntityId
type
realName
displayName
description
tag
size
status
createdDate
createdUserId
createdUserName
modifiedDate
modifiedUserId
modifiedUserName
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
}
fileInfo {
type
hash
contents
revision
revisionWeight
encrypted
thumbs
extractionStatus
extractionMsg
extractionReqDate
extractionResDate
__typename
}
acl {
id
targetType
targetId
authFlag
order
refernceId
__typename
}
__typename
}
__typename
}
comment {
total
page
size
results {
id
indexDate
createdDate
modifiedDate
createdUserId
createdUserName
contents
contentsDisplay
targetUserIds
entity {
id
indexDate
deleteKey
storageId
realPath
displayPath
storageEntityId
type
realName
displayName
description
tag
size
status
createdDate
createdUserId
createdUserName
modifiedDate
modifiedUserId
modifiedUserName
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
}
fileInfo {
type
hash
contents
revision
revisionWeight
encrypted
thumbs
extractionStatus
extractionMsg
extractionReqDate
extractionResDate
__typename
}
acl {
id
targetType
targetId
authFlag
order
refernceId
__typename
}
__typename
}
__typename
}
__typename
}
__typename
}
}

Sample

VARIABLES

{
"filter": {
"searchWords": [
"테스트"
],
"searchConfAnd": false,
"exceptSearchWords": [],
"exceptSearchConfAnd": true,
"displayPaths": [
"/folder",
"/share",
"/share_nas",
"/personal",
"/share_common"
],
"typeConfFile": true,
"typeConfFolder": true,
"typeConfComment": true,
"userIds": [],
"page": 0,
"size": 10,
"searchWordAnalyzed": true,
"date": 1676277055677
},
"adminPage": false
}

RESPONSE

{
"data": {
"search": {
"file": {
"total": 1,
"page": 0,
"size": 10,
"results": [
{
"id": "79af5cbba5e611eda98f9e445adbeb6d",
"indexDate": 1675664486062,
"deleteKey": "",
"storageId": "SECURE_NAS",
"realPath": "/shieldrive_folder/f0/78d612f0a5e611eda9aa2f2241a115d4",
"displayPath": "/share_nas/IDCTeams/General",
"storageEntityId": null,
"type": 1,
"realName": "78d612f0a5e611eda9aa2f2241a115d4.xlsx",
"displayName": "엑셀 테스트(기획) (1) (1).xlsx",
"description": "",
"tag": "",
"size": 6148,
"status": 2,
"createdDate": 1675664482095,
"createdUserId": "1342ce6d6aea11ed8a7ebea82d4a5658",
"createdUserName": "user1",
"modifiedDate": 1675664482095,
"modifiedUserId": "1342ce6d6aea11ed8a7ebea82d4a5658",
"modifiedUserName": "user1",
"folderInfo": null,
"fileInfo": {
"type": "cell",
"hash": "",
"contents": "",
"revision": "1.0.0",
"revisionWeight": 100000000,
"encrypted": false,
"thumbs": [],
"extractionStatus": 0,
"extractionMsg": "",
"extractionReqDate": 0,
"extractionResDate": 0,
"__typename": "FsEntityFileInfoDto"
},
"acl": {
"id": "7a3b2200a5e611eda98f9e445adbeb6d",
"targetType": 0,
"targetId": "1342ce6d6aea11ed8a7ebea82d4a5658",
"authFlag": 15,
"order": 0,
"refernceId": "660d729e80d511edaff0fed14848c248",
"__typename": "FsEntityAclDto"
},
"__typename": "FsEntityDto"
}
],
"__typename": "SearchFsEntityDto"
},
"folder": {
"total": 1,
"page": 0,
"size": 10,
"results": [
{
"id": "97d8ed37a90511ed8363a27f12cdf977",
"indexDate": 1676007700589,
"deleteKey": "",
"storageId": "CLD_000002",
"realPath": "/shieldrive_folder/37",
"displayPath": "/folder/newSharePoint",
"storageEntityId": null,
"type": 0,
"realName": "97d8ed37a90511ed8363a27f12cdf977",
"displayName": "테스트1",
"description": "",
"tag": "",
"size": 0,
"status": 0,
"createdDate": 1676007700589,
"createdUserId": "8239b9b2ed1511ecbf494657c4f20301",
"createdUserName": "최고관리자 ",
"modifiedDate": 1676007700589,
"modifiedUserId": "8239b9b2ed1511ecbf494657c4f20301",
"modifiedUserName": "최고관리자 ",
"folderInfo": {
"type": "FOLDER",
"shareFolderInfo": null,
"shareChannelInfo": null,
"shareListInfo": null,
"shareCardInfo": null,
"__typename": "FsEntityFolderInfoDto"
},
"fileInfo": null,
"acl": {
"id": "9809c138a90511ed8363a27f12cdf977",
"targetType": 2,
"targetId": "jQF7z1Lo-34TwGFbJ-lfd7MYHD-8G5iKMHl",
"authFlag": 15,
"order": 2,
"refernceId": "a9e659962cbd11edb4ac6a7104c4c708",
"__typename": "FsEntityAclDto"
},
"__typename": "FsEntityDto"
}
],
"__typename": "SearchFsEntityDto"
},
"comment": {
"total": 1,
"page": 0,
"size": 10,
"results": [
{
"id": "7353689f7b6611ed9c753628d70bf4a3",
"indexDate": 1670991547008,
"createdDate": 1670991547008,
"modifiedDate": 1670991547008,
"createdUserId": "1342ce6d6aea11ed8a7ebea82d4a5658",
"createdUserName": "user1",
"contents": "SHILEDrive 소개자료의 테스트 댓글",
"contentsDisplay": "SHILEDrive 소개자료의 테스트 댓글",
"targetUserIds": [],
"entity": {
"id": "b0f2d61d6b9f11edbf897aa5b9ccc5f6",
"indexDate": 1673513513428,
"deleteKey": "",
"storageId": "NAS",
"realPath": "/shieldrive_folder/10/afc1f7106b9f11eda86aefa03064afbc",
"displayPath": "/personal/user1@socam.info/87f92e670bf911ed9bafea52a378a89a",
"storageEntityId": null,
"type": 1,
"realName": "afc1f7106b9f11eda86aefa03064afbc.pptx",
"displayName": "새템플릿.pptx",
"description": "",
"tag": "",
"size": 4743319,
"status": 1,
"createdDate": 1669256913103,
"createdUserId": "1342ce6d6aea11ed8a7ebea82d4a5658",
"createdUserName": "user1",
"modifiedDate": 1669256913103,
"modifiedUserId": "1342ce6d6aea11ed8a7ebea82d4a5658",
"modifiedUserName": "user1",
"folderInfo": null,
"fileInfo": {
"type": "slide",
"hash": "1beb76db32da5d010d6980915254a76b91b6df7827c69d5f62fa7bbd2f561ad6",
"contents": "",
"revision": "1.0.0",
"revisionWeight": 100000000,
"encrypted": false,
"thumbs": [],
"extractionStatus": 0,
"extractionMsg": "",
"extractionReqDate": 1673513513428,
"extractionResDate": 0,
"__typename": "FsEntityFileInfoDto"
},
"acl": {
"id": "b18af7706b9f11edbf897aa5b9ccc5f6",
"targetType": 0,
"targetId": "1342ce6d6aea11ed8a7ebea82d4a5658",
"authFlag": 15,
"order": 0,
"refernceId": "4c87a46d6aeb11ed8a7ebea82d4a5658",
"__typename": "FsEntityAclDto"
},
"__typename": "FsEntityDto"
},
"__typename": "FsEntityCommentDto"
}
],
"__typename": "SearchFsEntityCommentDto"
},
"__typename": "SearchResultsDto"
}
}
}