App reviews, troubleshooting, and recommendations
In my app I am adding a meta object definition like so.
mutation {
metaobjectDefinitionCreate(definition: {
type: "$app:sometypename",
...
}
}
{
"metaobjectDefinitionCreate": {
"metaobjectDefinition": {
"id": "gid://shopify/MetaobjectDefinition/1234",
"type": "app--1234567--sometypename",
"fieldDefinitions": [
{
"key": "name",
"name": "Name",
"type": {
"name": "single_line_text_field"
}
},
{
"metaobjectDefinitionCreate": {
"metaobjectDefinition": null,
"userErrors": [
{
"field": [
"definition",
"type"
],
"message": "Type has already been taken"
}
]
}
}
Is this intentional behaviour? I wonder if it is in fact a bug given that:
a) if the definition for the meta object is private, then you can't even see it in the admin, it's only accessable within the app via the api calls.
b) there are other entities such as shipping carriers and fulfillment services which when created by the app get destroyed when uninstalling the app. So it seems as though there's a patter which this particular element doesn't follow.
I've also noticed the same when creating a delivery profile via my app. When uninstalling the app, the delivery profile doesn't get destroyed. Howveer in this case you can go in and manually remove it so as to not have any issues when trying to recreate it again with the same name on a subsequent reinstall.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025