categories
QueryReturns a list of categories.
Arguments
- String
after Returns the elements in the list that come after the specified cursor.
- String
before Returns the elements in the list that come before the specified cursor.
- Int
first Returns the first n elements from the list.
- Int
last Returns the last n elements from the list.
- SortDirection!Required
sortDirection The direction used to order the returned resources.
Possible enum valuesASCOrders values from lowest to highest or alphabetically from A to Z.
DESCOrders values from highest to lowest or alphabetically from Z to A.
- CategorySortKeys!Required
sortKey The field used to order the returned resources.
Possible enum valuesIDOrders categories by their identifier.
LEVELOrders categories by their depth in the category hierarchy.
NAMEOrders categories alphabetically by name.
Payload
- [CategoryEdge!]
edges A list of edges.
- [Category!]
nodes A flattened list of the nodes
- PageInfo!
pageInfo Information to aid in pagination.
- Int!
totalCount Identifies the total count of items in the connection.