2021-08-17 18:15:24 +00:00
|
|
|
import { gql } from 'apollo-server-micro'
|
|
|
|
|
|
|
|
export default gql`
|
|
|
|
extend type Query {
|
|
|
|
notifications(cursor: String): Notifications
|
|
|
|
}
|
|
|
|
|
|
|
|
type Votification {
|
|
|
|
earnedSats: Int!
|
|
|
|
item: Item!
|
2021-08-20 00:13:32 +00:00
|
|
|
sortTime: String!
|
2021-08-17 18:15:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Reply {
|
|
|
|
item: Item!
|
2021-08-20 00:13:32 +00:00
|
|
|
sortTime: String!
|
2021-08-17 18:15:24 +00:00
|
|
|
}
|
|
|
|
|
2021-08-18 23:00:54 +00:00
|
|
|
type Mention {
|
|
|
|
mention: Boolean!
|
|
|
|
item: Item!
|
2021-08-20 00:13:32 +00:00
|
|
|
sortTime: String!
|
2021-08-18 23:00:54 +00:00
|
|
|
}
|
|
|
|
|
2022-01-19 21:02:38 +00:00
|
|
|
type Invitification {
|
|
|
|
invite: Invite!
|
|
|
|
sortTime: String!
|
|
|
|
}
|
|
|
|
|
2022-02-28 20:09:21 +00:00
|
|
|
type JobChanged {
|
|
|
|
item: Item!
|
|
|
|
sortTime: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
union Notification = Reply | Votification | Mention | Invitification | JobChanged
|
2021-08-17 18:15:24 +00:00
|
|
|
|
|
|
|
type Notifications {
|
2021-08-20 00:13:32 +00:00
|
|
|
lastChecked: String
|
2021-08-17 18:15:24 +00:00
|
|
|
cursor: String
|
|
|
|
notifications: [Notification!]!
|
|
|
|
}
|
|
|
|
`
|