Hi I have a product, titled “7 Shakra Bracelet” and with the following query, I am able to include the product in the newly created collection and can see it in the collection page of my shop admin. But in the GraphQL response, the productsCount is 0 and the products list is empty. I also tested with the exact title “7 Shakra Bracelet”, in that case, I can get the correct response.
{
"data": {
"collectionCreate": {
"userErrors": [],
"collection": {
"id": "gid://shopify/Collection/*************",
"title": "TEST COLLECTIONCREATE",
"descriptionHtml": "",
"handle": "test-collectioncreate-6",
"ruleSet": {
"appliedDisjunctively": true,
"rules": [
{
"column": "TITLE",
"relation": "EQUALS",
"condition": "7 shakra Bracelet"
}
]
},
"productsCount": 0,
"products": {
"edges": []
}
}
}
},
"extensions": {
"cost": {
"requestedQueryCost": 54,
"actualQueryCost": 14,
"throttleStatus": {
"maximumAvailable": 1000,
"currentlyAvailable": 986,
"restoreRate": 50
}
}
}
}
mutation CollectionCreate($input: CollectionInput!) {
collectionCreate(input: $input) {
userErrors {
field
message
}
collection {
id
title
descriptionHtml
handle
ruleSet {
appliedDisjunctively
rules {
column
relation
condition
}
}
productsCount
products(first: 10) {
edges {
node {
title,
id,
images(first: 1) {
edges {
node {
id
}
}
}
title
}
}
}
}
}
}
{
"input": {
"title": "TEST COLLECTIONCREATE",
"ruleSet": {
"appliedDisjunctively": true,
"rules": {
"column": "TITLE",
"relation": "EQUALS",
"condition": "7 shakra Bracelet"
}
}
}
}