Let's say I have an array in my smartcontract that looks like this
string[] public employees;
I am able to fetch data from employees
if I know the index, like this
contract.method["employees"].catchCall([i]); // i is the index
How am I supposed to get all items in employees
if I don't know how many are there?