Declarative metaobjects/metafields and migrations

Hello,

When using the declarative metaobjects/metafields definition, how will it work if an app needs to migrate an existing metaobject definition/metafield definition that is already owned by an app? Will Shopify be smart enough to detect if the key/namespace match, and make it declarative? Or will this be impossible and only usable for new apps?

Thanks.

Hello! Yes the system will be able to migrate the definitions to be declarative if the namespace, key and owner type (or type for metaobject definitions) in the TOML match the existing!