mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-02-15 09:12:39 +00:00
* externalize gql queries in backend specs * externalize all queries & mutations where easily possible missing change * rename old queries & remove unnecessary function call * fix tests - notifications * fix tests - moderation * remove _CreatePostMutation file * remove _filterPosts & _postQuery files
20 lines
358 B
TypeScript
20 lines
358 B
TypeScript
import gql from 'graphql-tag'
|
|
|
|
export const notifications = gql`
|
|
query ($read: Boolean, $orderBy: NotificationOrdering) {
|
|
notifications(read: $read, orderBy: $orderBy) {
|
|
from {
|
|
__typename
|
|
... on Post {
|
|
content
|
|
}
|
|
... on Comment {
|
|
content
|
|
}
|
|
}
|
|
read
|
|
createdAt
|
|
}
|
|
}
|
|
`
|