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 Oct 29, 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

Relationship type: Canonical

From object typeTo object type
Compass component - ati:cloud:compass:componentCompass component link - ati:cloud:compass:component-link

Cypher

We recommend using parameterized Cypher queries rather than placing parameters directly in the query string. This helps improve performance.

Forward query

GraphQL
1
2
query ComponentHasComponentLink_CypherQuery($cypherQuery: String!, $params: JSON!) {
 graphStore @optIn(to: ["GraphStore", "GraphStoreCypherQueryV2"]) {
  cypherQueryV2(query: $cypherQuery, params: $params) {
   edges {
    node {
     columns {
      key
      value {. on GraphStoreCypherQueryV2NodeList {
        nodes {
         data {. on CompassLinkNode {
           id
          }
         }
        }
       }. on GraphStoreCypherQueryV2AriNode {
        data {. on CompassLinkNode {
          id
         }
        }
       }. on GraphStoreCypherQueryV2BooleanObject {
        bool_val: value
       }. on GraphStoreCypherQueryV2IntObject {
        int_val: value
       }. on GraphStoreCypherQueryV2FloatObject {
        float_val: value
       }. on GraphStoreCypherQueryV2StringObject {
        str_val: value
       }
      }
     }
    }
   }
  }
 }
}
Params
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: JSON!) {
 graphStore @optIn(to: ["GraphStore", "GraphStoreCypherQueryV2"]) {
  cypherQueryV2(query: $cypherQuery, params: $params) {
   edges {
    node {
     columns {
      key
      value {. on GraphStoreCypherQueryV2NodeList {
        nodes {
         data {. on CompassComponent {
           id
          }
         }
        }
       }. on GraphStoreCypherQueryV2AriNode {
        data {. on CompassComponent {
          id
         }
        }
       }. on GraphStoreCypherQueryV2BooleanObject {
        bool_val: value
       }. on GraphStoreCypherQueryV2IntObject {
        int_val: value
       }. on GraphStoreCypherQueryV2FloatObject {
        float_val: value
       }. on GraphStoreCypherQueryV2StringObject {
        str_val: value
       }
      }
     }
    }
   }
  }
 }
}
Params
1
2
{
 "cypherQuery": "MATCH (component:CompassComponent)-[:component_has_component_link]->(link:CompassComponentLink {ari: $id}) RETURN component",
 "params": {
  "id": "$id"
 }
}

Rate this page: