mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
docs: update SelectQueryBuilder.ts (#10631)
This commit is contained in:
parent
15de46fd5d
commit
8ebe7695a2
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user