Replies: 1 comment 1 reply
-
|
By default this lib is using take/skip method of typeorm's query builder. There are some unresolved issues with take/skip, joins and orderBy within typeorm which likely is causing your problem. Depending on the kind of relationships of your query, you might be able to fix it by using |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I'm facing an interesting problem. I've got a Project entity which has related Project phases and Additional work. When trying to apply default sort by their id's the pagination starts behaving in a weird way.
When 6 projects are present in the database, sending a request with Page=1, Limit=5 returns 3 records.
meta.totalItemsis 6.What I'm trying to accomplish with the
defaultSortByis for my projects to be sorted first by their id's, then I want the project's related projectPhase's to be sorted by their id, and likewise with the additionalWork.Am I trying to accomplish this in a way that's not intended?
This is what my pagination config looks like:
Any help is greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions