pagination sets next query even though there are no more results #5
Closed
Description
If the query contains a limit, backend keeps returning MORE_RESULTS_AFTER_LIMIT even though there are none.
var q = ds.query(['Kind']).limit(10);
We make an end cursor comparison to detect where to terminate pagination, but it costs us one extra query that returns an empty list of results.