Chloe 5385b5ed67
implement upload form functions
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
2024-06-25 12:17:55 +07:00

32 lines
590 B
TypeScript

export const createStageUploads = /* GraphQL */ `
mutation stagedUploadsCreate($input: [StagedUploadInput!]!) {
stagedUploadsCreate(input: $input) {
stagedTargets {
url
resourceUrl
parameters {
name
value
}
}
}
}
`;
export const createFileMutation = /* GraphQL */ `
mutation fileCreate($files: [FileCreateInput!]!) {
fileCreate(files: $files) {
files {
fileStatus
... on MediaImage {
id
}
}
userErrors {
field
message
}
}
}
`;