33 lines
528 B
JavaScript
33 lines
528 B
JavaScript
import { gql } from 'apollo-server-micro'
|
|
|
|
export default gql`
|
|
extend type Query {
|
|
notifications(cursor: String): Notifications
|
|
}
|
|
|
|
type Votification {
|
|
earnedSats: Int!
|
|
item: Item!
|
|
sortTime: String!
|
|
}
|
|
|
|
type Reply {
|
|
item: Item!
|
|
sortTime: String!
|
|
}
|
|
|
|
type Mention {
|
|
mention: Boolean!
|
|
item: Item!
|
|
sortTime: String!
|
|
}
|
|
|
|
union Notification = Reply | Votification | Mention
|
|
|
|
type Notifications {
|
|
lastChecked: String
|
|
cursor: String
|
|
notifications: [Notification!]!
|
|
}
|
|
`
|