OBJECT

Comment

link GraphQL Schema definition

  • type Comment implements Node {
  • id: ID!
  • # Body of the comment
  • body: String!
  • # The reflection prompt the user chose for this comment
  • reflectionPrompt: String
  • namedEntities: [NamedEntity!]
  • sentiment: Sentiment
  • # The total number of likes this comment has
  • totalLikes: Int!
  • createdAt: Time!
  • # The results of the reflection analysis. Only set of the ReflectionVersion is 1
  • reflectionAnalysisResults: ReflectionResult
  • updatedAt: Time!
  • # Whether or not the user should earn credits for this comment
  • shouldEarnCredits: Boolean!
  • # Whether or not the user earned credits for this comment
  • didEarnCredits: Boolean!
  • # Whether or not the credit was approved
  • creditWasApproved: Boolean
  • # The version of the reflection analysis algorithm used to analyze this comment.
  • #
  • # Version 1 is the original version, and is synchronous and the results are
  • # available immediately.
  • #
  • # - DidEarnCredits is set to true if the comment is approved.
  • #
  • # - ReflectionAnalysisResults is set to the results of the analysis.
  • #
  • # Version 2 is the newest version, and is asynchronous. Poll completedAt on the
  • # ReflectionAnalysis field to see if the comment was approved.
  • #
  • # - DidEarnCredits is set to true if the comment is approved.
  • #
  • # - ReflectionAnalysisResults is NOT set
  • #
  • # - See the ReflectionAnalysis field for details on the analysis.
  • #
  • # - If the comment was not approved, use the linked SparkyChat to continue the
  • # reflective process.
  • reflectionVersion: Int!
  • # The author of the comment
  • author: User
  • # The post this comment belongs to
  • post: Post
  • # The replies to this comment
  • parent: Comment
  • replies: [Comment!]
  • # The education credit this comment earned
  • educationCredit: EducationCredit
  • commentNamedEntities: [CommentNamedEntity!]
  • # The user who reviewed this comment
  • reviewedBy: User
  • sparkyConversations: [SparkyConversation!]
  • # The users who liked this comment
  • likedUsers: [User!]
  • sparkyChat: SparkyChat
  • reflectionAnalysis: ReflectionAnalysis
  • commentLikes: [CommentLike!]
  • likedAt: Time
  • }