Skip to content

task: add support for hierarchical nodes ancestors and descendants in the Python SDK #20

Description

@wvandeun

Component

Python SDK

Task Description

We should add support for ancestors and descendants in the Python SDK.

In GraphQL we can execute the following GraphQL query to get the ancestors or descendants of a Node that is part of a hierarchy:

query {
  InfraCountry(name__value: "United States of America") {
    edges {
      node {
        ancestors {
          edges {
            node {
              __typename
              name {
                value
              }
            }
          }
        }
        descendants {
          edges {
            node {
              __typename
              name {
                value
              }
            }
          }
        }
      }
    }
  }
}

This functionality is currently not available in the Python SDK.

Metadata

Metadata

Assignees

Labels

priority/2This issue stalls work on the project or its dependents, it's a blocker for a releasestate/backlogThis issue is part of the backlogtype/taskBody of work related to an epic

Type

Fields

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions