Get parent relationship from child within response

I am aware of fetching child relationships from a parent ie

/parent/1/relationships/child
/parent/1?include=child

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

/parent/1?include=child,grandparent

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).

-Fred

1 Like