45 lines
641 B
GraphQL
45 lines
641 B
GraphQL
query listActivityLog @auth(level: USER) {
|
|
activityLogs {
|
|
id
|
|
title
|
|
description
|
|
activityType
|
|
userId
|
|
isRead
|
|
}
|
|
}
|
|
|
|
query getActivityLogById(
|
|
$id: UUID!
|
|
) @auth(level: USER) {
|
|
activityLog(id: $id) {
|
|
id
|
|
title
|
|
description
|
|
activityType
|
|
userId
|
|
isRead
|
|
}
|
|
}
|
|
|
|
query filterActivityLog(
|
|
$userId: UUID,
|
|
$activityType: ActivityType,
|
|
$isRead: Boolean
|
|
) @auth(level: USER) {
|
|
activityLogs(
|
|
where: {
|
|
userId: { eq: $userId }
|
|
activityType: { eq: $activityType }
|
|
isRead: { eq: $isRead }
|
|
}
|
|
) {
|
|
id
|
|
title
|
|
description
|
|
activityType
|
|
userId
|
|
isRead
|
|
}
|
|
}
|