docs: update SelectQueryBuilder.ts (#10631)

This commit is contained in:
Pavlo Kolodka 2024-01-26 06:54:18 +02:00 committed by GitHub
parent 15de46fd5d
commit 8ebe7695a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1445,10 +1445,10 @@ export class SelectQueryBuilder<Entity extends ObjectLiteral>
}
/**
* Set's LIMIT - maximum number of rows to be selected.
* Sets LIMIT - maximum number of rows to be selected.
* NOTE that it may not work as you expect if you are using joins.
* If you want to implement pagination, and you are having join in your query,
* then use instead take method instead.
* then use the take method instead.
*/
limit(limit?: number): this {
this.expressionMap.limit = this.normalizeNumber(limit)
@ -1464,10 +1464,10 @@ export class SelectQueryBuilder<Entity extends ObjectLiteral>
}
/**
* Set's OFFSET - selection offset.
* Sets OFFSET - selection offset.
* NOTE that it may not work as you expect if you are using joins.
* If you want to implement pagination, and you are having join in your query,
* then use instead skip method instead.
* then use the skip method instead.
*/
offset(offset?: number): this {
this.expressionMap.offset = this.normalizeNumber(offset)