Closed m4ttek closed 2 months ago
Thanks @m4ttek I am working on it.
Hey @m4ttek I've created the DRAFT PR, but I could not generate the issue:
https://github.com/eclipse/jnosql-databases/pull/283
Where did you get the selectCursor
method?
@otaviojava it is the last method in SemiStructuredTemplate
interface - it takes a PageRequest
object as second parameter. Hence it shouldn't be necessary to invoke skip or limit - but it doesn't work neither.
@m4ttek, it is a documentation issue.
I've created the offset for this type of query; however, it will overwrite the SelectQuery
in both cases based on the PageRequest.
If you don't want you can use the <T> Stream<T> select(SelectQuery query);
Once again, thank you for finding the bug.
@otaviojava great, thanks for info. If you release a new version, I'll check it :)
@m4ttek deploy as SNAPSHOT, could you try it?
We are working on finishing the TCK of Jakarta Data; as soon we finish, we will release a new version.
@otaviojava it seems to be working now :)
@m4ttek thanks for the feedback
Which JNoSQL project the issue refers to?
JNoSQL (Core)
Bug description
There is no possiblity to paginate records using
SelectQueryBuilder
andDocumentTemplate
, specificallyArangoDBTemplate
.PageRequest
is also being ignored in queries.Skip parameter is ignored and so I cannot paginate results with it.
JNoSQL Version
1.1.1
Steps To Reproduce
Build an example SelectQuery with
skip
andlimit
parameters set and try to invoke it on aDocumentTemplate
object.Expected Results
Records returned by select query should be properly paginated.
Code example, screenshot, or link to a repository