custom select query throw error on pagination #3554
Replies: 2 comments 1 reply
-
Can you please share the TypeScript code you have written? |
Beta Was this translation helpful? Give feedback.
-
right now test some other problem on the pagination. I show you an small example of this const name = null
const query = VerifyRequest.query().select(
'*',
Database.raw(`concat_ws(' ', first_name, last_name) as name`)
)
if (name) {
query.where('name', 'like', "%name%")
}
await query.paginate(15) in the above example if the but if I have a name the query result should be some think like below
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a query that use
distinct
with paginationbut the query of pagination miss
distinct
and the result of total is not currectBeta Was this translation helpful? Give feedback.
All reactions