To read from a mapping in ethers/web3.js, we do this:
const value = await myContract.someMapping(someKey);
We can search up one key/value in the mapping at a time. How can I get ALL values within the mapping instead of just one value? The same applies for arrays where you can retrieve one index of the array:
const value = await myContract.someArray(0);
How can I retrieve the entire array?