> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# productMetafieldDefinitions

> The Shopify product and variant metafields the store has defined, as the Products tab's metafield picker lists them. Empty while catalog sync is off.

**Required scopes:** [`commerce_agent_knowledge_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-commerce_agent_knowledge_read)

## Returns

**productMetafieldDefinitions** `[\[ProductMetafieldDefinition!\]!](/docs/api-reference/v3/reference/commerce-agent/product-metafield-definition)` *required*

A Shopify product or variant metafield the store has defined, as the Products tab's metafield picker lists it.

**fields**

**id** `ID!` *required*

The metafield definition's id, which `productMetafieldKnowledgeReplace` takes.

**key** `String!` *required*

Its Shopify key.

**name** `String!` *required*

Its Shopify name.

**namespace** `String!` *required*

Its Shopify namespace.

**owner** `[ProductMetafieldOwner!](/docs/api-reference/v3/reference/commerce-agent/product-metafield-owner)` *required*

Whether it's a product or a variant metafield.

## Example

```graphql theme={null}
query {
  productMetafieldDefinitions {
    id
    key
    name
    namespace
    owner
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.