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