Skip to content

Instantly share code, notes, and snippets.

@kenzic
Created June 18, 2022 20:22
Show Gist options
  • Save kenzic/68086a3249667feb696716fbabe33190 to your computer and use it in GitHub Desktop.
Save kenzic/68086a3249667feb696716fbabe33190 to your computer and use it in GitHub Desktop.
mutation CartCreate {
cartCreate(input: {
lines: [
{
merchandiseId: "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0VmFyaWFudC80MDM0MjMwMTg2ODE3Mg==",
quantity: 4
}
]
}) {
userErrors {
code
}
cart {
id
lines(first: 10) {
edges {
node {
id
quantity
discountAllocations {
discountedAmount {
amount
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment