The problem I'm facing is with limit and offset. Instead of returning "limit" number of results from starting from "offset", I'm getting "offset" number of results when i execute the query.
For example: limit =10 and offset =20 is returning 20 results, instead of 10 results with offset at 20
If I removed the whole offset part then limit clause by itself is working correctly. Only when I apply offset, the library is interpreting value provided to offset clause as value for limit and returning results accordingly. I've double checked to make sure that I'm passing in correct values. This is final block in rolling out a new feature, any temporary work around from community is greatly appreciated. Thanks.
Here's the code snippet.
The problem I'm facing is with limit and offset. Instead of returning "limit" number of results from starting from "offset", I'm getting "offset" number of results when i execute the query.
For example: limit =10 and offset =20 is returning 20 results, instead of 10 results with offset at 20
If I removed the whole offset part then limit clause by itself is working correctly. Only when I apply offset, the library is interpreting value provided to offset clause as value for limit and returning results accordingly. I've double checked to make sure that I'm passing in correct values. This is final block in rolling out a new feature, any temporary work around from community is greatly appreciated. Thanks.