https://shopify.dev/docs/api/admin-graphql/unstable/mutations/metafielddefinitionpin
Shows identifier as only argument, and definitionId as deprecated. Yet, the code example shows definitionId, and trying to use identifier gives the below errors. So err… are the docs wrong? Did someone tag the wrong argument as deprecated?
"message": "Field 'metafieldDefinitionPin' is missing required arguments: definitionId",
"message": "Field 'metafieldDefinitionPin' doesn't accept argument 'identifier'",
{% action “shopify” %}
mutation {
metafieldDefinitionPin (
identifier: {
namespace: “MY_NAMESPACE”,
key: “MY_KEY”,
ownerType: PRODUCTVARIANT
}
) {
pinnedDefinition {
name
key
namespace
pinnedPosition
}
}
}
{% endaction %}