---
title: "segmentFilters"
description: "细分推荐列表"
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/customers/queries/segment-filters'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/customers/queries/segment-filters.md'
---
# segmentFilters

细分推荐列表

- **Required Scopes:** `read_customers`
- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Query

## Type Signature

`SegmentFilterConnection`

## Required Permissions

* `read_customers`

接口访问需要令牌，具体如何获取令牌请参考：[身份认证](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md)

## Arguments

* `after`

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

  返回指定游标之后的元素。如果指定了该参数，也必须要指定 `first` 参数。

* `before`

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

  返回指定游标之前的元素。如果指定了该参数，也必须要指定 `last` 参数。

* `first`

  [Int](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common/scalars/int.md)

  返回列表中的前 n 个元素。

* `last`

  [Int](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common/scalars/int.md)

  返回列表中的最后 n 个元素。

* `reverse`

  [Boolean](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common/scalars/boolean.md)

  是否反转列表的顺序。
  
  ● true：反转
  
  ● false：不反转
  
  默认值：false

## Returns

* `edges`

  [[SegmentFilterEdge!]](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/customers/objects/segment-filter-edge.md)

  edge 列表

* `nodes`

  [[SegmentFilter]](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/customers/objects/segment-filter.md)

  节点列表

* `pageInfo`

  [PageInfo!](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common-objects/objects/page-info.md)

  帮助分页的信息

## Code Example

```graphql
 {
	segmentFilters(after, before, first, last, reverse ) 
		 {
			# SegmentFilterConnection fields
		}
}
```

## Examples

### 细分推荐列表

细分推荐列表

**Request:**

```json
query {
  segmentFilters(first: 2, after:null,reverse:false) {
    edges {
      node {
        queryName
        queryValue
      }
    }
    nodes {
        queryName
        queryValue
    }
    pageInfo {
        endCursor
        hasNextPage
        hasPreviousPage
        startCursor
    }
  }
}

```

**Response:**

```json
{
  "data": {
    "data": {
      "segmentFilters": {
        "edges": [
          {
            "node": {
              "queryName": "emailDomain",
              "queryValue": "{\"key\":\"emailDomain\",\"type\":0,\"operator\":\"IN\",\"value\":[],\"extInfo\":{\"operatorType\":\"EQ\",\"componentType\":\"LIST_PAGE\",\"listSource\":\"emailDomain\"}}"
            }
          },
          {
            "node": {
              "queryName": "language",
              "queryValue": "{\"key\":\"language\",\"type\":0,\"operator\":\"IN\",\"value\":[],\"extInfo\":{\"operatorType\":\"EQ\",\"componentType\":\"LIST\",\"listSource\":\"language\"}}"
            }
          }
        ],
        "nodes": [
          {
            "queryName": "emailDomain",
            "queryValue": "{\"key\":\"emailDomain\",\"type\":0,\"operator\":\"IN\",\"value\":[],\"extInfo\":{\"operatorType\":\"EQ\",\"componentType\":\"LIST_PAGE\",\"listSource\":\"emailDomain\"}}"
          },
          {
            "queryName": "language",
            "queryValue": "{\"key\":\"language\",\"type\":0,\"operator\":\"IN\",\"value\":[],\"extInfo\":{\"operatorType\":\"EQ\",\"componentType\":\"LIST\",\"listSource\":\"language\"}}"
          }
        ],
        "pageInfo": {
          "endCursor": "AF52536A1951B28A30AAE8825A2B69B9",
          "hasNextPage": true,
          "hasPreviousPage": false,
          "startCursor": "39C77C6A85E202FDAAB6A0D829D4F007"
        }
      }
    }
  }
}
```

## Error Handling

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

