bug: prefetch_relationships does not support directionality #3065
Labels
group/backend
Issue related to the backend (API Server, Git Agent)
type/bug
Something isn't working as expected
Milestone
Component
API Server / GraphQL
Current Behavior
if you call
NodeManager.get_many
withprefetch_relationships=True
and any of the nodes you are fetching include a directional relationship, it will not be property retrieved.For example, when retrieving a hierarchical node (each node has cardinality=one
parent
relationship and a cardinality=manychildren
relationship that share theparent__child
identifier), any parents and children will be returned as part of both theparent
andchildren
relationships b/c the query does not take relationship directionality into account.Expected Behavior
The relationships should be retrieved properly.
Steps to Reproduce
No response
Additional Information
fix will be in the
NodeListGetRelationshipsQuery
to add directions based on the relationship schema being queriedThe text was updated successfully, but these errors were encountered: