<commit_before># .limit(`integer`)
### Purpose

### Parameters
|   |     Description     | Accepted Data Types | Required ? |
|---|---------------------|---------------------|------------|
| 1 |  Number to Return   |      `int`         | Yes         |

### Example Usage

```javascript
var myQuery = User.find();
myQuery.limit(12);

myQuery.exec(function callBack(err,results){
    console.log(results)
    });

```
### Notes
> * If you set the limit to 0, the query will always return an empty array.
> * The .find() method returns a chainable object if you don't supply a callback.  This method can be chained to .find() to further filter your results.


<docmeta name="displayName" value=".limit()">
<docmeta name="pageType" value="method"><commit_msg>Update `.limit()` reference<commit_after># .limit(`integer`)

Set the maximum number of records to retrieve when executing a [query instance](http://sailsjs.com/documentation/reference/waterline-orm/queries).

### Parameters
|   |     Description     | Accepted Data Types | Required ? |
|---|---------------------|---------------------|------------|
| 1 |  Number to Return   |      `int`         | Yes         |

### Example Usage

```javascript
var myQuery = User.find();
myQuery.limit(12);

myQuery.exec(function callBack(err,results){
    console.log(results)
    });

```
### Notes
> * If you set the limit to 0, the query will always return an empty array.
> * If the limit is greater than the number of records matching the query criteria, all of the matching records will be returned.
> * The .find() method returns a chainable object if you don't supply a callback.  This method can be chained to .find() to further filter your results.


<docmeta name="displayName" value=".limit()">
<docmeta name="pageType" value="method">
{'fraction_non_alphanumeric': 0.18659217877094972, 'fraction_numerical': 0.004469273743016759, 'mean_word_length': 2.778481012658228, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7572091', 'n_tokens_mistral': 506, 'n_tokens_neox': 477, 'n_words': 179}