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.
after
String
Description
Collection pagination argument, indicating the cursor corresponding to the item after which the results should be fetched.
- Query
- Response
query($first: Int!) {
allCollections(first: $first) {
# StoreCollectionConnection fields
}
}
Below you can see a list of all fields that can be queried with allCollections
.
Click on the links to learn more details about each field.
- StoreCollectionConnection
pageInfo
: StorePageInfohasNextPage
: boolean!hasPreviousPage
: boolean!startCursor
: string!endCursor
: string!totalCount
: int!
edges
: [StoreCollectionEdge]!node
: StoreCollection!- Collection information. Check StoreCollection to see all possible fields.
cursor
: string!
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.