How can I get metafield definition from metaobject

Hi all!
How I Can get metafield definition from metaobject?

I want to make some like that

product.metafields.custom.addition_options.breeds[0].definitionName

And that Pug object should return a Breed

Hey @Dima34

You can query the [type](https://shopify.dev/docs/api/storefront/2023-10/objects/Metaobject#field-metaobject-type)

E.g.

query {
  node(id: "gid://shopify/Metaobject/...") {
    ...on Metaobject {
      id
      type
    }
  }
}

Where I should do that query?

Could we get that info through liquid or ajax?

Ah sorry @Dima34 - thought you were using the Storefront API. Through Liquid, it looks like the closest match is metaobject_system:

> Basic information about a metaobject. These properties are grouped under the system object to avoid collisions between system property names and user-defined metaobject fields.

You’ll want the type property to pull ‘breed’