---
title: "FilterValue"
description: "过滤器内的可选值"
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/filter-value'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/filter-value.md'
---
# FilterValue

过滤器内的可选值

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

## Type Signature

`FilterValue`

## Fields

* `count`

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

  与此过滤器值匹配的结果数

* `input`

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

  可用于按父字段上的该值进行过滤的输入对象。
  
  该值作为构建动态过滤 UI 的帮助程序提供。例如，如果您有选定的 FilterValue 对象的列表，则可以组合它们各自的输入值以在后续查询中使用

* `label`

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

  此过滤器值的人类友好字符串

## Schema Definition

```graphql
type FilterValue { 
	count: String!
	input: String!
	label: String! 
}
```

## Field from

* [Filter](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/filter.md).values

  此过滤器的值列表

## Error Handling

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

