Schema Documentation

CreateCommentInput

Description

Input for the createComment mutation

Fields
Input FieldDescription
approved - String

The approval status of the comment.

author - String

The name of the comment's author.

authorEmail - String

The email of the comment's author.

authorUrl - String

The url of the comment's author.

clientMutationId - String

This is an ID that can be passed to a mutation by the client to track the progress of mutations and catch possible duplicate mutation submissions.

commentOn - Int

The database ID of the post object the comment belongs to.

content - String

Content of the comment.

date - String

The date of the object. Preferable to enter as year/month/day ( e.g. 01/31/2017 ) as it will rearrange date as fit if it is not specified. Incomplete dates may have unintended results for example, "2017" as the input will use current date with timestamp 20:17

parent - ID

Parent comment ID of current comment.

type - String

Type of comment.

Example
{"approved":"xyz789","author":"xyz789","authorEmail":"xyz789","authorUrl":"xyz789","clientMutationId":"xyz789","commentOn":987,"content":"abc123","date":"abc123","parent":4,"type":"abc123"}