query getLinkedPipelines($fullPath: ID!, $iid: ID!) {
  project(fullPath: $fullPath) {
    id
    pipeline(iid: $iid) {
      id
      path
      downstream {
        nodes {
          id
          path
          project {
            id
            name
          }
          detailedStatus {
            id
            group
            icon
            label
          }
        }
      }
      upstream {
        id
        path
        project {
          id
          name
        }
        detailedStatus {
          id
          group
          icon
          label
        }
      }
    }
  }
}
