query CardPropertyTerms($definitionId: String!, $property: String!) {
cardPropertyTerms(definitionId: $definitionId, property: $property) {
edges {
cursor
node {
count
value {
__typename
... on TextValue {
__typename
}
}
}
}
nodes {
count
value {
__typename
... on TextValue {
__typename
}
}
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}{
"definitionId": "string",
"property": "string"
}{
"data": {
"cardPropertyTerms": {
"edges": [
{
"cursor": "string",
"node": {
"count": "value",
"value": {
"__typename": "TextValue"
}
}
}
],
"nodes": [
{
"count": "value",
"value": {
"__typename": "TextValue"
}
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
},
"totalCount": "value"
}
}
}cardPropertyTerms
Lists the distinct values of one card property across the card entries that match where, each with how many entries have it, with forward paging.
cardPropertyTerms(after: String, contains: String, definitionId: String!, exclude: [String!], first: Int, ignoreCase: Boolean!, language: String, property: String!, sort: FacetSortInput, where: Predicate): FacetConnectionArguments
Returns the elements in the list that come after the specified cursor.
Keeps only the values that contain this literal text. Text and list properties only.
Raw id of the card definition (e.g. products), not the global CardDefinition.id.
Values to leave out before counting and paging, matched exactly and case-sensitively. Text and list properties only.
Returns the first n elements from the list.
Whether contains ignores case. Default false. Values that differ only in case stay separate.
Language code (e.g. en) for a localized property, used for its values and in where. Required when either uses a localized property; there's no fallback language.
Id of the card property whose values are counted.
What the values are sorted by. Null sorts by COUNT descending, ties by value ascending.
Filters which card entries count, as a Predicate. Null counts every entry of the card definition.
Returns
A list of edges.
A flattened list of the nodes.
Information to aid in pagination.
query CardPropertyTerms($definitionId: String!, $property: String!) {
cardPropertyTerms(definitionId: $definitionId, property: $property) {
edges {
cursor
node {
count
value {
__typename
... on TextValue {
__typename
}
}
}
}
nodes {
count
value {
__typename
... on TextValue {
__typename
}
}
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}{
"definitionId": "string",
"property": "string"
}{
"data": {
"cardPropertyTerms": {
"edges": [
{
"cursor": "string",
"node": {
"count": "value",
"value": {
"__typename": "TextValue"
}
}
}
],
"nodes": [
{
"count": "value",
"value": {
"__typename": "TextValue"
}
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
},
"totalCount": "value"
}
}
}Was this page helpful?