stacker.news/fragments/notifications.js

39 lines
718 B
JavaScript
Raw Normal View History

import { gql } from '@apollo/client'
2021-08-17 18:15:24 +00:00
import { ITEM_FIELDS } from './items'
export const NOTIFICATIONS = gql`
${ITEM_FIELDS}
query Notifications($cursor: String) {
notifications(cursor: $cursor) {
cursor
2021-08-20 00:13:32 +00:00
lastChecked
2021-08-17 18:15:24 +00:00
notifications {
__typename
2021-08-18 23:00:54 +00:00
... on Mention {
2021-08-20 00:13:32 +00:00
sortTime
2021-08-18 23:00:54 +00:00
mention
item {
...ItemFields
text
}
}
2021-08-17 18:15:24 +00:00
... on Votification {
2021-08-20 00:13:32 +00:00
sortTime
2021-08-17 18:15:24 +00:00
earnedSats
item {
...ItemFields
text
}
}
... on Reply {
2021-08-20 00:13:32 +00:00
sortTime
2021-08-17 18:15:24 +00:00
item {
...ItemFields
text
}
}
}
}
} `