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.
Input fields
file (
Upload!
)
File to upload
filename (
String
)
Filename (allows to override default filename)
suppressNotifications (
Boolean
)
Determines if email notifications will be sent on action
Return fields
errors (
[AnyMutationError]
)
Mutation errors. Provides information about missing content or privilages
attachment (
Attachment
)