hello test content{
collections(first: 10,query:"title:CO-ORDS") {
edges {
node {
id
title
description
}
}
}
}{
collections(first: 10,query:"title:New Arrivals") {
edges {
node {
id
title
description
}
}
}
}mutation {
productCreate(input: {
title: "Obello Off White Tube Co-ord Set",
descriptionHtml: "",
seo: {
title: "",
description: ""
},
status: ACTIVE,
productOptions: [
{
name: "Size",
values: [
{
name: "L-XL"
},
{
name: "S-M"
},
]
}
],
publications: [
{
publicationId: "gid://shopify/Publication/217708069154"
}
],
collectionsToJoin: ["gid://shopify/Collection/475172929826","gid://shopify/Collection/470547988770"],
vendor: "LaGlits",
metafields: [
{
namespace: "custom",
key: "fabric",
value: "Banana Crepe",
type: "single_line_text_field"
},
{
namespace: "custom",
key: "care",
value: "Dry Clean Only",
type: "single_line_text_field"
},
{
namespace: "custom",
key: "disclaimer",
value: "Slight Colour variations may occur due to different screen resolution.",
type: "single_line_text_field"
},
{
namespace: "custom",
key: "dimensions",
value: "32 x 25 x 5",
type: "single_line_text_field"
},
{
namespace: "custom",
key: "weight",
value: "{\"value\":900,\"unit\":\"GRAMS\"}",
type: "weight"
},
]
},media:[
{
alt: "Obello Off White Tube Co-ord Set",
mediaContentType: IMAGE,
originalSource: "https://d16w982crqq8a7.cloudfront.net/wp-content/uploads/2024/06/w1-8.jpeg"
},{
alt: "Obello Off White Tube Co-ord Set",
mediaContentType: IMAGE,
originalSource: "https://d16w982crqq8a7.cloudfront.net/wp-content/uploads/2024/06/w3-7.jpeg"
},{
alt: "Obello Off White Tube Co-ord Set",
mediaContentType: IMAGE,
originalSource: "https://d16w982crqq8a7.cloudfront.net/wp-content/uploads/2024/06/w4-10.jpeg"
},{
alt: "Obello Off White Tube Co-ord Set",
mediaContentType: IMAGE,
originalSource: "https://d16w982crqq8a7.cloudfront.net/wp-content/uploads/2024/06/w5-9.jpeg"
},{
alt: "Obello Off White Tube Co-ord Set",
mediaContentType: IMAGE,
originalSource: "https://d16w982crqq8a7.cloudfront.net/wp-content/uploads/2024/06/w6-8.jpeg"
},{
alt: "Obello Off White Tube Co-ord Set",
mediaContentType: IMAGE,
originalSource: "https://d16w982crqq8a7.cloudfront.net/wp-content/uploads/2024/06/w7-9.jpeg"
}
]) {
product {
id
}
userErrors {
field
message
}
}
}Array
(
[data] => Array
(
[productCreate] => Array
(
[product] => Array
(
[id] => gid://shopify/Product/9338107986210
)
[userErrors] => Array
(
)
)
)
[extensions] => Array
(
[cost] => Array
(
[requestedQueryCost] => 10
[actualQueryCost] => 10
[throttleStatus] => Array
(
[maximumAvailable] => 2000
[currentlyAvailable] => 1990
[restoreRate] => 100
)
)
)
)
eddeddArray
(
[0] => Array
(
[optionId] => gid://shopify/ProductOption/11729621188898
[id] => gid://shopify/ProductOptionValue/3769187107106
[requiresShipping] => 1
[weight] => 900
[weightUnit] => GRAMS
[sku] => LG161430
[barcode] =>
[inventoryPolicy] => DENY
[availableQuantity] => 6
[locationId] => gid://shopify/Location/95256346914
[fulfillmentServiceId] => gid://shopify/FulfillmentService/manual
[inventoryItem] => Array
(
[cost] => 3090
[tracked] => 1
)
[price] => 3090
[taxable] => 1
[taxCode] =>
[harmonizedSystemCode] => 621142
)
[1] => Array
(
[optionId] => gid://shopify/ProductOption/11729621188898
[id] => gid://shopify/ProductOptionValue/3769187139874
[requiresShipping] => 1
[weight] => 900
[weightUnit] => GRAMS
[sku] => LG161430
[barcode] =>
[inventoryPolicy] => DENY
[availableQuantity] => 10
[locationId] => gid://shopify/Location/95256346914
[fulfillmentServiceId] => gid://shopify/FulfillmentService/manual
[inventoryItem] => Array
(
[cost] => 3090
[tracked] => 1
)
[price] => 3090
[taxable] => 1
[taxCode] =>
[harmonizedSystemCode] => 621142
)
)
mutation {
productVariantsBulkCreate(productId: "gid://shopify/Product/9338107986210",
strategy: REMOVE_STANDALONE_VARIANT,
variants: [{
optionValues: [
{
optionId: "gid://shopify/ProductOption/11729621188898",
id: "gid://shopify/ProductOptionValue/3769187107106"
}
],
requiresShipping: true,
weight: 900,
weightUnit: GRAMS,
sku: "LG161430",
barcode: "",
inventoryPolicy: DENY,
inventoryQuantities: [
{
availableQuantity: 6,
locationId: "gid://shopify/Location/95256346914"
}
],
fulfillmentServiceId: "gid://shopify/FulfillmentService/manual",
inventoryItem: {
cost: "3090",
tracked: true,
},
price: "3090",
taxable: true,
taxCode: "",
harmonizedSystemCode: "621142"
},{
optionValues: [
{
optionId: "gid://shopify/ProductOption/11729621188898",
id: "gid://shopify/ProductOptionValue/3769187139874"
}
],
requiresShipping: true,
weight: 900,
weightUnit: GRAMS,
sku: "LG161430",
barcode: "",
inventoryPolicy: DENY,
inventoryQuantities: [
{
availableQuantity: 10,
locationId: "gid://shopify/Location/95256346914"
}
],
fulfillmentServiceId: "gid://shopify/FulfillmentService/manual",
inventoryItem: {
cost: "3090",
tracked: true,
},
price: "3090",
taxable: true,
taxCode: "",
harmonizedSystemCode: "621142"
}]) {
product {
id
}
userErrors {
field
message
}
}
}Array
(
[data] => Array
(
[productVariantsBulkCreate] => Array
(
[product] => Array
(
[id] => gid://shopify/Product/9338107986210
)
[userErrors] => Array
(
)
)
)
[extensions] => Array
(
[cost] => Array
(
[requestedQueryCost] => 10
[actualQueryCost] => 10
[throttleStatus] => Array
(
[maximumAvailable] => 2000
[currentlyAvailable] => 1990
[restoreRate] => 100
)
)
)
)
9338107986210