INPUT_OBJECT

CreateCommentInput

CreateCommentInput is used for create Comment object. Input was generated by ent.

link GraphQL Schema definition

  • input CreateCommentInput {
  • # Body of the comment
  • body: String!
  • # The reflection prompt the user chose for this comment
  • reflectionPrompt: String
  • # The total number of likes this comment has
  • totalLikes: Int
  • createdAt: Time
  • 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
  • authorID: ID
  • postID: ID
  • parentID: ID
  • replyIDs: [ID!]
  • educationCreditID: ID
  • commentNamedEntityIDs: [ID!]
  • reviewedByID: ID
  • sparkyConversationIDs: [ID!]
  • likedUserIDs: [ID!]
  • sparkyChatID: ID
  • reflectionAnalysisID: ID
  • }

link Require by