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.
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024