Skip to main content

categoryConnection

Fetch all categories based on a filter

categoryConnection(
filter: CategoryFilter
sort: [CategorySort!]! = [object Object]
first: Int! = 20
after: String
offset: Int! = 0
): CategoryConnection!

Arguments

filter ● CategoryFilter

Manage what data you will get.

sort ● [CategorySort!]!

Which algorithms we will sort by.

first ● Int!

How many categories will be fetched. (default: 20, max: 200)

after ● String

Cursor based pagination for the categories fetched.

offset ● Int!

Offset based pagination for the categories fetched. (default: 0).

Type

CategoryConnection

Represent a paginated connection list of categories