Developer
Get Support
Sign in
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Last updated Nov 11, 2025

Component has component link

The ComponentHasComponentLink relationship represents the link between a Compass component and a Compass component link within the Teamwork Graph. It allows you to:

  • Retrieve component links for a specific component
  • Find which component a component link belongs to
  • Traverse and analyze component-link relationships

Category

CategoryCanonical

Types

From Object TypesTo Object Types
Compass Component - ati:cloud:compass:componentCompass Component Link - ati:cloud:compass:component-link

Cypher

Forward Query

GraphQL
1
2
query ComponentHasComponentLink_CypherQuery($cypherQuery: String!, $params: CypherRequestParams) {
  cypherQuery(query: $cypherQuery, params: $params) {
    edges {
      node {
        columns {
          value {
            ... on CypherQueryResultNode {
              id
              data {
                __typename
                ... on CompassLinkNode {
                  id
                }
              }
            }
          }
        }
      }
    }
  }
}
Params

Note

We recommend sending parameterized Cypher queries as below instead of embedding the parameters directly in the query string. This approach will help ensure better performance.

1
2
{
  "cypherQuery": "MATCH (component:CompassComponent {ari: $id})-[:component_has_component_link]->(link:CompassComponentLink) RETURN link",
  "params": {
    "id": "$id"
  }
}

Inverse Query

GraphQL
1
2
query ComponentHasComponentLink_CypherQuery($cypherQuery: String!, $params: CypherRequestParams) {
  cypherQuery(query: $cypherQuery, params: $params) {
    edges {
      node {
        columns {
          value {
            ... on CypherQueryResultNode {
              id
              data {
                __typename
                ... on CompassComponent {
                  id
                }
              }
            }
          }
        }
      }
    }
  }
}
Params

Note

We recommend sending parameterized Cypher queries as below instead of embedding the parameters directly in the query string. This approach will help ensure better performance.

1
2
{
  "cypherQuery": "MATCH (component:CompassComponent)-[:component_has_component_link]->(link:CompassComponentLink {ari: $id}) RETURN component",
  "params": {
    "id": "$id"
  }
}

Rate this page: