stacker.news/fragments/notifications.js
2021-08-17 13:15:24 -05:00

28 lines
523 B
JavaScript

import { gql } from 'apollo-server-micro'
import { ITEM_FIELDS } from './items'
export const NOTIFICATIONS = gql`
${ITEM_FIELDS}
query Notifications($cursor: String) {
notifications(cursor: $cursor) {
cursor
notifications {
__typename
... on Votification {
earnedSats
item {
...ItemFields
text
}
}
... on Reply {
item {
...ItemFields
text
}
}
}
}
} `