1
0
mirror of https://github.com/vercel/commerce.git synced 2025-08-23 09:11:23 +00:00
Files
.github
.vscode
app
components
contexts
fonts
hooks
lib
shopify
fragments
mutations
cart.ts
file.ts
order.ts
queries
auth.ts
index.ts
types.ts
constants.ts
styles.ts
type-guards.ts
types.ts
utils.ts
public
.env.example
.eslintrc.js
.gitignore
.nvmrc
.prettierignore
README.md
license.md
middleware.ts
next.config.js
package.json
pnpm-lock.yaml
postcss.config.js
prettier.config.js
tailwind.config.js
tsconfig.json
commerce/lib/shopify/mutations/file.ts
2024-06-25 21:57:57 +07:00

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
}
}
}
`;