For discussing the development and usage of Checkout UI extensions, post-purchase extensions, web pixels, Customer Accounts UI extensions, and POS UI extensions
const { data } = await query(
`mutation {
giftCardCreate(input: {
code: "0123456789",
initialValue: "100",
note: "0123456789"
}) {
userErrors {
field
message
}
giftCard {
id
expiresOn
note
initialValue {
amount
}
customer {
id
}
}
giftCardCode
}
}`,
);
console.log(data);
`query ($first: Int!) {
products(first: $first) {
nodes {
id
title
images(first:1){
nodes {
url
}
}
variants(first: 1) {
nodes {
id
price {
amount
}
}
}
}
}
}`,
{
variables: { first: 5 },
}