notifier/notifier.graphql
Untone 4630299a56
Some checks failed
deploy / deploy (push) Failing after 1m41s
schema-fix
2023-11-24 05:45:38 +03:00

38 lines
582 B
GraphQL

enum NotificationAction {
CREATE,
UPDATE,
DELETE,
SEEN
}
enum NotificationEntity {
SHOUT,
REACTION
}
type Notification {
id: Int!
action: NotificationAction!
entity: NotificationEntity!
created_at: Int!
seen: Boolean!
data: String # JSON
occurrences: Int
}
input NotificationsQueryParams {
limit: Int
offset: Int
}
type NotificationsQueryResult {
notifications: [Notification]!
total: Int!
unread: Int!
}
type Query {
loadNotifications(params: NotificationsQueryParams!): NotificationsQueryResult!
}