taskcafe/internal/graph/schema/notification/notification.gql
2021-10-30 17:20:41 -05:00

38 lines
528 B
GraphQL

extend type Subscription {
notificationAdded: Notified!
}
extend type Query {
notifications: [Notified!]!
}
enum ActionType {
TASK_MEMBER_ADDED
}
type NotificationData {
key: String!
value: String!
}
type NotificationCausedBy {
fullname: String!
username: String!
id: ID!
}
type Notification {
id: ID!
actionType: ActionType!
causedBy: NotificationCausedBy!
data: [NotificationData!]!
createdAt: Time!
}
type Notified {
id: ID!
notification: Notification!
read: Boolean!
readAt: Time
}