query SourcePropertyTerms($property: String!, $sourceId: String!) {
sourcePropertyTerms(property: $property, sourceId: $sourceId) {
edges {
cursor
node {
count
value {
__typename
... on TextValue {
__typename
}
}
}
}
nodes {
count
value {
__typename
... on TextValue {
__typename
}
}
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}{
"property": "string",
"sourceId": "string"
}{
"data": {
"sourcePropertyTerms": {
"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"
}
}
}sourcePropertyTerms
Lists the distinct values of one source property across the source entries that match where, each with how many entries have it, with forward paging.
sourcePropertyTerms(after: String, contains: String, exclude: [String!], first: Int, ignoreCase: Boolean!, language: String, property: String!, sort: FacetSortInput, sourceId: String!, 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.
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 source property whose values are counted.
What the values are sorted by. Null sorts by COUNT descending, ties by value ascending.
Raw id of the data source (e.g. products), not the global DataSource.id.
Filters which source entries count, as a Predicate over source properties; segment, relation and lifecycle aren't supported. Null counts every entry of the source.
Returns
A list of edges.
A flattened list of the nodes.
Information to aid in pagination.
query SourcePropertyTerms($property: String!, $sourceId: String!) {
sourcePropertyTerms(property: $property, sourceId: $sourceId) {
edges {
cursor
node {
count
value {
__typename
... on TextValue {
__typename
}
}
}
}
nodes {
count
value {
__typename
... on TextValue {
__typename
}
}
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}{
"property": "string",
"sourceId": "string"
}{
"data": {
"sourcePropertyTerms": {
"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?