eosjs icon indicating copy to clipboard operation
eosjs copied to clipboard

eos.getTableRows only return up to 10 rows limitation

Open vicraft18 opened this issue 8 years ago • 2 comments

Does anyone know if we can bypass the max number of rows fetched by eos.getTableRows

In my table I have hundreds of rows, however i can only get up to 10 rows with the following command: eos.getTableRows(true,'victor3','victor3','data',0,0,100).then(function (_data) { console.log(_data); }) I played around with the parameters "lower_bound":0, "upper_bound":0, "limit":100, seems like I can't get over 10 with the limit

vicraft18 avatar May 31 '18 06:05 vicraft18

I realized I'm missing a paramter in eos.getTableRows(true,'victor3','victor3','data',0,0,100), missing table_key

eos.getTableRows(true,'victor3','victor3','data','poster_id',0,0,100), i'm not sure what to fill in there, I tried to put my primary key (poster_id) there and it return with an error:

TypeError: Cannot read property 'poster' of undefined

vicraft18 avatar May 31 '18 06:05 vicraft18

In the end i just put 0 in the table_key slot and seem to work fine eos.getTableRows(true,'victor3','victor3','data','poster_id',0,0,0,100)

vicraft18 avatar May 31 '18 06:05 vicraft18