In case I've huge records (millions) in my table; How can I paginate them in GET
request?
LoopBack 4 official control example doesn't emulate this case. I couldn't find any reference for a real case solution (they mentioned an example for the pagination in skip filter but it's not mentioning how to use it with repository methods ex. find()
).
Do you've any example or snippet for that case?
EDIT (I saw someone voted to close this question): The main reason of this question is preventing the front-end developer to make any mistake by calling a huge query may impact on server performance (in case she/he forget to use skip
& limit
filters).