mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-03-01 12:44:37 +00:00
40 lines
695 B
TypeScript
40 lines
695 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
|
|
}
|
|
}
|
|
}
|
|
`
|