stacker.news/api/typeDefs/notifications.js

24 lines
368 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!
}
type Reply {
item: Item!
}
union Notification = Reply | Votification
type Notifications {
cursor: String
notifications: [Notification!]!
}
`