---
title: "KeyValue"
description: "Key-Value 对"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/key-value'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/key-value.md'
---
# KeyValue

Key-Value 对

- **API Version:** v20270301
- **API Type:** Storefront
- **API Protocol:** GraphQL
- **Operation Type:** Object

## Type Signature

`KeyValue`

## Fields

* `name`

  [String](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/string.md)

  key

* `value`

  [String](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/string.md)

  value

## Schema Definition

```graphql
type KeyValue { 
	name: String
	value: String 
}
```

## Field from

* [ProductOption](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/objects/product-option.md).valuesImages

  变体选项值图片

## Error Handling

关于更多通用错误码说明，参考：[状态码和错误码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes)。

