Skip to content

tags

Query

Search for tags based on a set of filters.

Response

Returns TagConnection

Arguments

NameTypeDescription
filterFilterTagInput

Filter tags by id or name.

firstInt!

Returns the first n elements from the list.

Default: 20

afterString

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

sort[TagsSort!]!

The field and direction by which to sort the results

Default: [{ field: LABEL_NAME, direction: ASC }, { field: ID, direction: ASC }]

Example

query tags(
$filter: FilterTagInput,
$first: Int!,
$after: String,
$sort: [TagsSort!]!
) {
tags(
filter: $filter,
first: $first,
after: $after,
sort: $sort
) {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
node {
id
name
color
}
cursor
}
totalCount
}
}