UploadAttachment
The Action allows to uploading file (attachment).
Here is an example:
mutation ($file: Upload!) {
uploadAttachment(file: $file) {
errors{
__typename
... on MutationError {message}
... on MutationInputError {field messages}}, attachment{id}
}
}",
"variables": { "file": null }
}
Note: file content needs to be send using multipart form.
File upload size limit is 25MB.
Fields
errors (
[AnyMutationError]
)
Mutation errors. Provides information about missing content or privilages
attachment (
Attachment
)