Post
No description
type Post {
_id: ID
text: String!
title: String
createdAt: DateTime
imageUrl: URL
videoUrl: URL
creator: User!
organization: Organization!
likedBy: [User]
comments: [Comment]
likeCount: Int
commentCount: Int
pinned: Boolean
}
Fields
Post._id
● ID
scalar
Post.text
● String!
non-null scalar
Post.title
● String
scalar
Post.createdAt
● DateTime
scalar
Post.imageUrl
● URL
scalar
Post.videoUrl
● URL
scalar
Post.creator
● User!
non-null object
Post.organization
● Organization!
non-null object
Post.likedBy
● [User]
list object
Post.comments
● [Comment]
list object
Post.likeCount
● Int
scalar
Post.commentCount
● Int
scalar
Post.pinned
● Boolean
scalar
Returned by
createPost
mutation ● likePost
mutation ● post
query ● postsByOrganization
query ● removePost
mutation ● togglePostPin
mutation ● unlikePost
mutation ● updatePost
mutation
Member of
Comment
object ● Organization
object ● PostConnection
object