Schema Documentation
CreateCommentPayload
Description
The payload for the createComment mutation.
Fields
Field Name | Description |
---|---|
clientMutationId - String | If a 'clientMutationId' input is provided to the mutation, it will be returned as output on the mutation. This ID can be used by the client to track the progress of mutations and catch possible duplicate mutation submissions. |
comment - Comment | The comment that was created |
success - Boolean | Whether the mutation succeeded. If the comment is not approved, the server will not return the comment to a non authenticated user, but a success message can be returned if the create succeeded, and the client can optimistically add the comment to the client cache |
Example
{"clientMutationId":"abc123","comment":Comment,"success":true}