这是我当前使用的代码。
使用 getRawMany() - 跳过并采取不起作用!
const data = await getRepository(Enquiry)
.createQueryBuilder('enq')
.select([
'enq.id AS id',
'enq.location AS location',
'enqStatus.name AS status'
])
.leftJoin('enq.status', 'enqStatus')
.skip(1)
.take(3)
.where(payload)
.getRawMany()Run Code Online (Sandbox Code Playgroud)