stacker.news/api/typeDefs/notifications.js

38 lines
616 B
JavaScript
Raw Normal View History

2021-08-17 13:15:24 -05: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-19 19:13:32 -05:00
sortTime: String!
2021-08-17 13:15:24 -05:00
}
type Reply {
item: Item!
2021-08-19 19:13:32 -05:00
sortTime: String!
2021-08-17 13:15:24 -05:00
}
2021-08-18 18:00:54 -05:00
type Mention {
mention: Boolean!
item: Item!
2021-08-19 19:13:32 -05:00
sortTime: String!
2021-08-18 18:00:54 -05:00
}
2022-01-19 15:02:38 -06:00
type Invitification {
invite: Invite!
sortTime: String!
}
union Notification = Reply | Votification | Mention | Invitification
2021-08-17 13:15:24 -05:00
type Notifications {
2021-08-19 19:13:32 -05:00
lastChecked: String
2021-08-17 13:15:24 -05:00
cursor: String
notifications: [Notification!]!
}
`