Hi,
Thanks for the reply.
Here is my mutation:
mutation CreateMetafieldDefinition($definition: MetafieldDefinitionInput!) {
metafieldDefinitionCreate(definition: $definition) {
createdDefinition {
name
}
userErrors {
field
message
code
}
}
}
And the variables:
definition: {
"name": "ID",
"namespace": "test",
"key": "id",
"description": "ID",
"type": "single_line_text_field",
"ownerType": "PRODUCT",
"forceCreate": true,
}
Not sure which shopify-admin-graphql version I am using. I am using graphql client from ` @Shopify_77 /shopify-api -
5.0.0`, so I guess its using the latest version (2022-10).
So, like you said forceCreate is not there in MetafieldDefinitionInput, so is there an alternative way to forceCreate a metafield definition?