Query
query SegmentDefinitions {
segmentDefinitions {
edges {
cursor
node {
cardDefinitionId
createdAt
defaultContentFilterProperties
description
iconUrl
id
}
}
nodes {
cardDefinitionId
createdAt
defaultContentFilterProperties
description
iconUrl
id
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}Response
{
"data": {
"segmentDefinitions": {
"edges": [
{
"cursor": "string",
"node": {
"cardDefinitionId": "id",
"createdAt": "value",
"defaultContentFilterProperties": [
"string"
],
"description": "string",
"iconUrl": "string",
"id": "id"
}
}
],
"nodes": [
{
"cardDefinitionId": "id",
"createdAt": "value",
"defaultContentFilterProperties": [
"string"
],
"description": "string",
"iconUrl": "string",
"id": "id"
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
},
"totalCount": 1
}
}
}Queries
segmentDefinitions
Lists the tenant’s segment definitions, archived ones included; the type has no field that tells them apart.
QUERY
segmentDefinitions(after: String, before: String, first: Int, last: Int, order: [SegmentDefinitionSortInput!], where: SegmentDefinitionFilterInput): SegmentDefinitionsConnectionArguments
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
Returns
edges
A list of edges.
nodes
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 SegmentDefinitions {
segmentDefinitions {
edges {
cursor
node {
cardDefinitionId
createdAt
defaultContentFilterProperties
description
iconUrl
id
}
}
nodes {
cardDefinitionId
createdAt
defaultContentFilterProperties
description
iconUrl
id
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}Response
{
"data": {
"segmentDefinitions": {
"edges": [
{
"cursor": "string",
"node": {
"cardDefinitionId": "id",
"createdAt": "value",
"defaultContentFilterProperties": [
"string"
],
"description": "string",
"iconUrl": "string",
"id": "id"
}
}
],
"nodes": [
{
"cardDefinitionId": "id",
"createdAt": "value",
"defaultContentFilterProperties": [
"string"
],
"description": "string",
"iconUrl": "string",
"id": "id"
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
},
"totalCount": 1
}
}
}Was this page helpful?