COQL equivalent to zoho.crm.getRelatedRecords

COQL equivalent to zoho.crm.getRelatedRecords

Hello

i add a standalone function, that i call from my js app with ZOHO.CRM.CONNECTION.invoke etc

in the function i fetch with something like this
  1. AllContacts = zoho.crm.getRelatedRecords("relation_name","parent_module_name",recordid);

it works great
But during test, i add issues when getRelatedRecords find many records more than 100 for instance the app break , kind of time out.

I was thinking to move from :
  1. AllContacts = zoho.crm.getRelatedRecords("relation_name","parent_module_name",recordid);
to COQL but i can't find the SQL query to get same result as.  zoho.crm.getRelatedRecords("relation_name","parent_module_name",recordid);

Thanks for insights