mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-03-01 12:44:28 +00:00
* refactor: externalize all remaining queries in spec files * User with different queries due to permissions * fix notification:groups * fix hashtagsmiddleware * fix blockedUsers * fix softDeleteMiddleware * fix shouts.spec * fix userInteractions spec * fix mutedUsers spec * seocialMedia spec * fix notificationMiddleware.spec * fix user.spce & fix undefined activeCategories * fix notifications.spec * fix userInteractions.spec * fix blockedUsers & mutedUsers spec * remove unused comment * fix locations spec * fix orderByMiddleware & spec * fix lint * fix shout spec
40 lines
691 B
TypeScript
40 lines
691 B
TypeScript
import gql from 'graphql-tag'
|
|
|
|
export const Post = gql`
|
|
query ($id: ID, $filter: _PostFilter, $first: Int, $offset: Int, $orderBy: [_PostOrdering]) {
|
|
Post(id: $id, filter: $filter, first: $first, offset: $offset, orderBy: $orderBy) {
|
|
id
|
|
title
|
|
content
|
|
contentExcerpt
|
|
eventStart
|
|
pinned
|
|
createdAt
|
|
pinnedAt
|
|
isObservedByMe
|
|
observingUsersCount
|
|
clickedCount
|
|
emotionsCount
|
|
emotions {
|
|
emotion
|
|
User {
|
|
id
|
|
}
|
|
}
|
|
author {
|
|
id
|
|
name
|
|
}
|
|
shoutedBy {
|
|
id
|
|
}
|
|
tags {
|
|
id
|
|
}
|
|
comments {
|
|
content
|
|
}
|
|
}
|
|
}
|
|
`
|