Get parent relationship from child within response

I am aware of fetching child relationships from a parent ie


But is there a way to fetch the grandparent and child relationships from parent with one endpoint. ie


Is it a good practice?

That makes sense only if /parent/1 has child and grandparent relationships (which can be entirely reasonable, depending on your application).


1 Like