I have the following query in my API where i need pagination:
let query = ` SELECT * from ( SELECT a.*, row_to_json(u.*) as userinfo, row_number() over (p