---
title: "Filter"
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'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/filter.md'
---
# Filter

父字段支持的过滤器

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

## Type Signature

`Filter`

## Fields

* `label`

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

  此过滤器的人性化字符串

* `type`

  [FilterType!](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/enums/filter-type.md)

  表示此过滤器所代表的数据类型的枚举

* `values`

  [[FilterValue!]!](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/filter-value.md)

  此过滤器的值列表

## Schema Definition

```graphql
type Filter { 
	label: String!
	type: FilterType!
	values: [FilterValue!]! 
}
```

## Field from

* [ProductConnection](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/objects/product-connection.md).filters

  可用过滤器的列表，注意，[products](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/queries/collection.md) 不支持

* [SearchResultItemConnection](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/objects/search-result-item-connection.md).productFilters

  可用的过滤器列表

## Error Handling

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

