Skip to content

@142vip.nest typeorm.类.QueryResult

mmdapl edited this page Oct 8, 2026 · 1 revision

API 参考 / @142vip/nest-typeorm / QueryResult

类: QueryResult<T>

定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/query-runner/QueryResult.d.ts:4

Result object returned by UpdateQueryBuilder execution.

类型参数

T

T = any

构造函数

构造函数

new QueryResult<T>(): QueryResult<T>

返回

QueryResult<T>

属性

affected?

optional affected?: number

定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/query-runner/QueryResult.d.ts:16

Number of affected rows/documents


raw

raw: any

定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/query-runner/QueryResult.d.ts:8

Raw SQL result returned by executed query.


records

records: T[]

定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/query-runner/QueryResult.d.ts:12

Rows

Clone this wiki locally