Docs
Dashboard

categories

Query

Returns a list of categories.

#

Arguments


after
String

Returns the elements in the list that come after the specified cursor.

before
String

Returns the elements in the list that come before the specified cursor.

first
Int

Returns the first n elements from the list.

last
Int

Returns the last n elements from the list.

sortDirection
SortDirection!Required

The direction used to order the returned resources.

Possible enum values
  • ASC

    Orders values from lowest to highest or alphabetically from A to Z.

  • DESC

    Orders values from highest to lowest or alphabetically from Z to A.

sortKey
CategorySortKeys!Required

The field used to order the returned resources.

Possible enum values
  • ID

    Orders categories by their identifier.

  • LEVEL

    Orders categories by their depth in the category hierarchy.

  • NAME

    Orders categories alphabetically by name.

#

Payload


edges
[CategoryEdge!]

A list of edges.

nodes
[Category!]

A flattened list of the nodes

pageInfo
PageInfo!

Information to aid in pagination.

totalCount
Int!

Identifies the total count of items in the connection.