Query
query Segments {
segments {
edges {
cursor
node {
cardDefinition {
__typename
}
cardDefinitionId
colorHex
createdAt
createdByUser
description
}
}
nodes {
cardDefinition {
activationStatus {
__typename
}
activePropertySet {
__typename
}
allowsEnrichment
cardsCount
createdAt
createdByUser
}
cardDefinitionId
colorHex
createdAt
createdByUser
description
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}Response
{
"data": {
"segments": {
"edges": [
{
"cursor": "string",
"node": {
"cardDefinition": {
"__typename": "CardDefinition"
},
"cardDefinitionId": "id",
"colorHex": "string",
"createdAt": "value",
"createdByUser": "value",
"description": "string"
}
}
],
"nodes": [
{
"cardDefinition": {
"activationStatus": {
"__typename": "WorkflowStatus"
},
"activePropertySet": {
"__typename": "PropertySet"
},
"allowsEnrichment": true,
"cardsCount": "value",
"createdAt": "value",
"createdByUser": "value"
},
"cardDefinitionId": "id",
"colorHex": "string",
"createdAt": "value",
"createdByUser": "value",
"description": "string"
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
},
"totalCount": 1
}
}
}Queries
segments
Lists the tenant’s segments, archived ones included.
QUERY
segments(after: String, before: String, first: Int, last: Int, order: [SegmentSortInput!], where: SegmentFilterInput): SegmentsConnectionArguments
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.
order
where
Returns
edges
[SegmentsEdge!]
A list of edges.
nodes
[Segment!]
A flattened list of the nodes.
pageInfo
Information to aid in pagination.
totalCount
Int!
Identifies the total count of items in the connection.
Query
query Segments {
segments {
edges {
cursor
node {
cardDefinition {
__typename
}
cardDefinitionId
colorHex
createdAt
createdByUser
description
}
}
nodes {
cardDefinition {
activationStatus {
__typename
}
activePropertySet {
__typename
}
allowsEnrichment
cardsCount
createdAt
createdByUser
}
cardDefinitionId
colorHex
createdAt
createdByUser
description
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}Response
{
"data": {
"segments": {
"edges": [
{
"cursor": "string",
"node": {
"cardDefinition": {
"__typename": "CardDefinition"
},
"cardDefinitionId": "id",
"colorHex": "string",
"createdAt": "value",
"createdByUser": "value",
"description": "string"
}
}
],
"nodes": [
{
"cardDefinition": {
"activationStatus": {
"__typename": "WorkflowStatus"
},
"activePropertySet": {
"__typename": "PropertySet"
},
"allowsEnrichment": true,
"cardsCount": "value",
"createdAt": "value",
"createdByUser": "value"
},
"cardDefinitionId": "id",
"colorHex": "string",
"createdAt": "value",
"createdByUser": "value",
"description": "string"
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
},
"totalCount": 1
}
}
}Was this page helpful?