Hi,
No more than 55 child-to-parent relationships can be specified in a query. A custom object allows up to 25 relationships, so you can reference all the child-to-parent relationships for a custom object in one query. No more than 20 parent-to-child relationships can be specified in a query.
No more than 55 child-to-parent relationships can be specified in a query. A custom object allows up to 25 relationships, so you can reference all the child-to-parent relationships for a custom object in one query. No more than 20 parent-to-child relationships can be specified in a query.