Pagination total is always 3

hello everyone.
when I use the nft api getNFTsForContract(nodejs sdk), the pagination information total is always 3, but actually there are more than 3 records. and I also tried the restful api, the result is the same.
Why is that??
thanks!

the list returned from the api has 11 records, but the pagination ‘total’ is always 3

it looks like a caching issue, that total is cached and not updated every time now

is there anyway to solve this problem??

we’ll have to look, we may remove that count/total from response in the future

You can get the actual number of results received and use that.

console.log(response.result.length);

response.result.length is just the page size, not the real total count

Sorry, you’re correct, I assumed you were looping through the results but you just need the total. That’s what you may have to do until this issue is resolved.

do you still get this issue now?