Comment
No description
type Comment {
_id: ID
text: String!
createdAt: DateTime
creator: User!
post: Post!
likedBy: [User]
likeCount: Int
}
Fields
Comment._id
● ID
scalar
Comment.text
● String!
non-null scalar
Comment.createdAt
● DateTime
scalar
Comment.creator
● User!
non-null object
Comment.post
● Post!
non-null object
Comment.likedBy
● [User]
list object
Comment.likeCount
● Int
scalar
Returned by
createComment
mutation ● likeComment
mutation ● removeComment
mutation ● unlikeComment
mutation
Member of
Post
object