stacker.news/api/typeDefs/notifications.js

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