Skip to main content

allCollections

Returns a paginated list with information about all the store collections.

Usage

Arguments

first*Int
Description

Number of items that should return from the complete result list.

afterString
Description

Collection pagination argument, indicating the cursor corresponding to the item after which the results should be fetched.

query($first: Int!) {
allCollections(first: $first) {
# StoreCollectionConnection fields
}
}

Example

Get the type, slug, SEO description, and cursor of the five collections after the collection with the cursor 4. Also, get the total amount of collections and the cursor corresponding to the list's last collection.

Didn't find your answers? Ask the Community. For documentation suggestions, submit your feedback.

JOIN THE COMMUNITY