Adding category metafields via GraphQL Admin API

Heyo anyone know if there’s a way to add the pre-defined Shopify category metafields when creating a product through the GraphQL API? Referring to the “attributes” here:

https://shopify.github.io/product-taxonomy/releases/2024-07/?categoryId=sg-4-17-2-17

with IDs like gid://shopify/TaxonomyValue/19404

Read a few threads saying its not possible but just wanna double check bc itd be a total bummer as it makes integrating with existing operations a little hard depending on how they filter for products etc

1 Like

Hi Agustin,

Metafields can be passed in during the productCreate mutation: ProductCreateInput - GraphQL Admin

However you’ll need to have the metaobject entries created first.