본문으로 건너뛰기

Query - 알림 조회

구독한 폴더 및 하위 폴더에서 발생한 활동에 대한 알림을 조회한다.


Schema

GraphQL Schema Documentation


Input Objects

KEYOBJECTDESC
dateLong조회 기준 시간 (millisecond)
sizeInt조회할 수
adminPageBoolean관리자 페이지 여부

Objects

OBJECTDESC
UserNotificationDto알림 정보

Method

POST

{{url}}/graphql

Headers

KEYVALUE
AuthorizationSecurity365 JWT 토큰

Body

QUERY

query notifications($date: Long, $size: Int, $adminPage: Boolean) {
notifications(date: $date, size: $size, adminPage: $adminPage) {
id
indexDate
readDate
userId
createdUserId
createdUserName
type
sourceType
sourceKey
sourceValue
targetType
targetKey
targetValue
__typename
}
}

Sample

VARIABLES

{
"date": 0,
"size": 2,
"adminPage": false
}

RESPONSE

{
"data": {
"notifications": [
{
"id": "570874fbb0e311edbb8e7e06e13ea874",
"indexDate": 1676872598259,
"readDate": 0,
"userId": "0a945b04ed1a11eca5a9120930abec96",
"createdUserId": "160134402da311edb82afa7c5f9e51c1",
"createdUserName": "웤스",
"type": 36,
"sourceType": 1,
"sourceKey": "/share_common/공유 폴더",
"sourceValue": "공유 폴더",
"targetType": 0,
"targetKey": "",
"targetValue": "",
"__typename": "UserNotificationDto"
},
{
"id": "f398127cadc711edbf3e6ee6ed82ceac",
"indexDate": 1676530981528,
"readDate": 0,
"userId": "0a945b04ed1a11eca5a9120930abec96",
"createdUserId": "160134402da311edb82afa7c5f9e51c1",
"createdUserName": "웤스",
"type": 36,
"sourceType": 1,
"sourceKey": "/share_common/공유 폴더",
"sourceValue": "공유 폴더",
"targetType": 0,
"targetKey": "",
"targetValue": "",
"__typename": "UserNotificationDto"
}
]
}
}