mirror of
https://github.com/vercel/commerce.git
synced 2025-08-23 09:11:23 +00:00
.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
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
|
|
}
|
|
}
|
|
}
|
|
`;
|