---
title: "CollectionConnection"
description: "Auto-generated type used for pagination of multiple Collections."
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/objects/collection-connection'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/objects/collection-connection.md'
---
# CollectionConnection

Auto-generated type used for pagination of multiple Collections.

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

## Type Signature

`CollectionConnection`

## Fields

* `edges`

  [[CollectionEdge!]](https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/objects/collection-edge.md)

  List of edge nodes.

* `nodes`

  [[Collection!]](https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/objects/collection.md)

  List of nodes contained within a CollectionEdge.

* `pageInfo`

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

  Pagination Assistance Information.

## Schema Definition

```graphql
type CollectionConnection { 
	edges: [CollectionEdge!]
	nodes: [Collection!]
	pageInfo: PageInfo! 
}
```

## Field from

* [Query](https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/queries/collections.md).collections

  返回分类列表

* [Product](https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/objects/product.md).collections

  List of collections the product belongs to.

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

