stacker.news/fragments/notifications.js

35 lines
643 B
JavaScript

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