Schema Documentation
createPost
Description
The createPost mutation
Response
Returns a CreatePostPayload
Arguments
Name | Description |
---|---|
input - CreatePostInput! | Input for the createPost mutation |
Example
Query
mutation createPost($input: CreatePostInput!){ createPost(input: $input){ clientMutationIdpost { ...PostFragment } }}
Variables
{"input":CreatePostInput}
Response
{"data":{"createPost":{"clientMutationId":"xyz789","post":Post}}}