Added an entry for meta-object with API - but no hex color showing

Added an entry for meta-object with API - but no hex color showing

ES_AB
Shopify Partner
6 0 0

Looking for some help here :),

 

So i added a new entry (Black) to my Metaobject with Graphql:  but the problem when i did this with API it was added in my dashboard as the name only but for the hexcode field no color thumbnail like when i added it manually from dashboard. attached images, Any help is appreciated. thanks.

 

 

{ "metaobject": { "type": "Color", "fields": [ { "key": "name", "value": "black" }, { "key": "hexcode", "value": "#333333" } ], "capabilities": { "publishable": { "status": "ACTIVE" } } } }

 

 

1.png2.pngScreenshot 2024-08-12 at 7.52.21 PM.png

 

Replies 2 (2)

PaulNewton
Shopify Partner
6910 619 1455

Query the other entries made with the admin manually to compare them to the entry made with the api.

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


ES_AB
Shopify Partner
6 0 0

I suspected that it has to do with thumbnailField, After i queried all of them suggested , definitely thumbnailField returned is empty for the "black" entry. The thing in the documentation it doesn't accept that field, probably need to do another query to do connections similar to attaching media to product. So if anyone know how to do that let me know -- continuing research -- update later