stacker.news/api/typeDefs/notifications.js

33 lines
528 B
JavaScript
Raw Normal View History

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
}
union Notification = Reply | Votification | Mention
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!]!
}
`