Skip to main content

Post

No description

type Post {
attachments: [PostAttachment!]
caption: String
comments(
after: String
before: String
first: Int
last: Int
): PostCommentsConnection
commentsCount: Int
createdAt: DateTime
creator: User
downVoters(
after: String
before: String
first: Int
last: Int
): PostDownVotersConnection
downVotesCount: Int
hasUserVoted(userId: ID!): HasUserVoted
id: ID!
organization: Organization
pinnedAt: DateTime
upVoters(
after: String
before: String
first: Int
last: Int
): PostUpVotersConnection
upVotesCount: Int
updatedAt: DateTime
updater: User
}

Fields

Post.attachments ● [PostAttachment!] list object

Array of attachments.

Post.caption ● String scalar

Caption for the post.

Post.comments ● PostCommentsConnection object

GraphQL connection to traverse through the comments created under the post.

Post.comments.after ● String scalar
Post.comments.before ● String scalar
Post.comments.first ● Int scalar
Post.comments.last ● Int scalar

Post.commentsCount ● Int scalar

Total number of comments created under the post.

Post.createdAt ● DateTime scalar

Date time at the time the post was created.

Post.creator ● User object

User who created the post.

Post.downVoters ● PostDownVotersConnection object

GraphQL connection to traverse through the users that down voted the post.

Post.downVoters.after ● String scalar
Post.downVoters.before ● String scalar
Post.downVoters.first ● Int scalar
Post.downVoters.last ● Int scalar

Post.downVotesCount ● Int scalar

Total number of down votes on the post.

Post.hasUserVoted ● HasUserVoted object

Check if a specific user has voted on this post and return vote details.

Post.hasUserVoted.userId ● ID! non-null scalar

The ID of the user to check if they have voted on this post.

Post.id ● ID! non-null scalar

Global identifier of the post.

Post.organization ● Organization object

Organization which the post belongs to.

Post.pinnedAt ● DateTime scalar

Date time at the time the post was pinned.

Post.upVoters ● PostUpVotersConnection object

GraphQL connection to traverse through the user that up voted the post.

Post.upVoters.after ● String scalar
Post.upVoters.before ● String scalar
Post.upVoters.first ● Int scalar
Post.upVoters.last ● Int scalar

Post.upVotesCount ● Int scalar

Total number of up votes on the post.

Post.updatedAt ● DateTime scalar

Date time at the time the post was last updated.

Post.updater ● User object

User who last updated the post.

Returned By

createPost mutation ● createPostVote mutation ● deletePost mutation ● deletePostVote mutation ● post query ● postsByOrganization query ● updatePost mutation ● updatePostVote mutation

Member Of

Comment object ● OrganizationPinnedPostsConnectionEdge object ● OrganizationPostsConnectionEdge object