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.
Component
Python SDK
Task Description
We should add support for
ancestorsanddescendantsin 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:
This functionality is currently not available in the Python SDK.