> 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.

# Metafield

GraphQL object

A metafield.

Reference: https://docs.bigcommerce.com/developer/api-reference/graphql/admin/types/objects/metafield

## Fields

- `id` — The ID of the metafield.
- `description` — Metafield description.
- `key` — Metafield key.
- `namespace` — Metafield namespace.
- `permissionSet` — Metafield permission set.
- `resourceId` — Resource id of an entity metafield related to.
- `value` — Metafield value.
- `ownerClientId` — Identifier of metafields owner.
- `createdAt` — Date and time when the metafield was created.
- `updatedAt` — Date and time when the metafield was last updated.
- `node` — The specific data or value stored within a metafield, representing additional information about an associated resource.

## Definition

```graphql
type Metafield {
  id: String!
  description: String!
  key: String!
  namespace: String!
  permissionSet: MetafieldsPermissionSet!
  resourceId: String!
  value: String!
  ownerClientId: String!
  createdAt: DateTime
  updatedAt: DateTime
  node: MetafieldsNodeType
}
```