schema-fix
Some checks failed
deploy / deploy (push) Failing after 1m41s

This commit is contained in:
2023-11-24 05:45:38 +03:00
parent b172b4ef84
commit 4630299a56
3 changed files with 60 additions and 9 deletions

View File

@@ -0,0 +1,37 @@
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!
}