Query
query RelationDefinitions {
relationDefinitions {
edges {
cursor
node {
createdAt
createdByUser
description
displayCategory
endpoints {
__typename
}
id
}
}
nodes {
createdAt
createdByUser
description
displayCategory
endpoints {
edges {
__typename
}
nodes {
__typename
}
pageInfo {
__typename
}
totalCount
}
id
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}Response
{
"data": {
"relationDefinitions": {
"edges": [
{
"cursor": "string",
"node": {
"createdAt": "value",
"createdByUser": "value",
"description": "string",
"displayCategory": "DEFAULT",
"endpoints": {
"__typename": "EndpointsConnection"
},
"id": "id"
}
}
],
"nodes": [
{
"createdAt": "value",
"createdByUser": "value",
"description": "string",
"displayCategory": "DEFAULT",
"endpoints": {
"edges": [
{
"__typename": "EndpointsEdge"
}
],
"nodes": [
{
"__typename": "Endpoint"
}
],
"pageInfo": {
"__typename": "PageInfo"
},
"totalCount": 1
},
"id": "id"
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
},
"totalCount": 1
}
}
}Queries
relationDefinitions
Lists the tenant’s relation definitions, archived ones included, newest first unless order says otherwise. where filters on raw ids (id, sourceCardDefinitionId, targetCardDefinitionId) and can’t filter on isDeleted.
QUERY
relationDefinitions(after: String, before: String, first: Int, last: Int, order: [RelationDefinitionSortInput!], where: RelationDefinitionFilterInput): RelationDefinitionsConnectionArguments
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
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 RelationDefinitions {
relationDefinitions {
edges {
cursor
node {
createdAt
createdByUser
description
displayCategory
endpoints {
__typename
}
id
}
}
nodes {
createdAt
createdByUser
description
displayCategory
endpoints {
edges {
__typename
}
nodes {
__typename
}
pageInfo {
__typename
}
totalCount
}
id
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}Response
{
"data": {
"relationDefinitions": {
"edges": [
{
"cursor": "string",
"node": {
"createdAt": "value",
"createdByUser": "value",
"description": "string",
"displayCategory": "DEFAULT",
"endpoints": {
"__typename": "EndpointsConnection"
},
"id": "id"
}
}
],
"nodes": [
{
"createdAt": "value",
"createdByUser": "value",
"description": "string",
"displayCategory": "DEFAULT",
"endpoints": {
"edges": [
{
"__typename": "EndpointsEdge"
}
],
"nodes": [
{
"__typename": "Endpoint"
}
],
"pageInfo": {
"__typename": "PageInfo"
},
"totalCount": 1
},
"id": "id"
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
},
"totalCount": 1
}
}
}Was this page helpful?