> This page is for Developer.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bigcommerce.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bigcommerce.com/_mcp/server.

# Metafields

GraphQL object

Key/Value pairs of data attached tied to a resource entity (product, brand, category, etc.)

Reference: https://docs.bigcommerce.com/developer/api-reference/graphql/storefront/types/objects/metafields

## Fields

- `id` — The ID of metafield.
- `entityId` — The ID of the metafield when referencing via our backend API.
- `key` — A label for identifying metafield's data value.
- `value` — A metafield's value.
- `description` — A metafield's description.

## Definition

```graphql
type Metafields {
  id: String!
  entityId: Int!
  key: String!
  value: String!
  description: String!
}
```