You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed a discrepancy between GraphQL and the UI regarding Contact Assignments and child Locations. I'm opening a discussion because I don't know how this ought to be addressed.
Reproduction steps:
Create a Location
Assign a Contact to the Location
Create a child Location
In the UI, the child location automatically includes the Contact Assignment from its parent, which is helpful. I can't find a way to achieve this in GraphQL. It makes sense that GraphQL should return only exactly what you ask for, but I think there should be some way to include parent assignments to match the UI behavior.
For example this query returns an empty list when you ask for contacts of the child location:
{
child:location(id:6){
name
contacts{display}
}
parent: location(id:1){
name
contacts{display}
}
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed a discrepancy between GraphQL and the UI regarding Contact Assignments and child Locations. I'm opening a discussion because I don't know how this ought to be addressed.
Reproduction steps:
In the UI, the child location automatically includes the Contact Assignment from its parent, which is helpful. I can't find a way to achieve this in GraphQL. It makes sense that GraphQL should return only exactly what you ask for, but I think there should be some way to include parent assignments to match the UI behavior.
For example this query returns an empty list when you ask for contacts of the child location:
result:
Beta Was this translation helpful? Give feedback.
All reactions