mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-03-01 12:44:28 +00:00
29 lines
486 B
TypeScript
29 lines
486 B
TypeScript
import { gql } from 'graphql-tag'
|
|
|
|
export const notifications = gql`
|
|
query ($read: Boolean, $orderBy: NotificationOrdering) {
|
|
notifications(read: $read, orderBy: $orderBy) {
|
|
reason
|
|
relatedUser {
|
|
id
|
|
}
|
|
from {
|
|
__typename
|
|
... on Post {
|
|
id
|
|
content
|
|
}
|
|
... on Comment {
|
|
id
|
|
content
|
|
}
|
|
... on Group {
|
|
id
|
|
}
|
|
}
|
|
read
|
|
createdAt
|
|
}
|
|
}
|
|
`
|