mirror of
https://github.com/vercel/commerce.git
synced 2025-05-13 21:27:50 +00:00
30 lines
550 B
TypeScript
30 lines
550 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
|
|
id
|
|
}
|
|
userErrors {
|
|
field
|
|
message
|
|
}
|
|
}
|
|
}
|
|
`;
|