stacker.news/fragments/notifications.js

28 lines
518 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
notifications {
__typename
... on Votification {
earnedSats
item {
...ItemFields
text
}
}
... on Reply {
item {
...ItemFields
text
}
}
}
}
} `