不要怂,就是干,撸起袖子干!

Commit d8a1074c by Diosney Sarmiento

docs: Fixed minor typos.

1 parent 8be21776
...@@ -21,7 +21,7 @@ $ sequelize migration:create # Generates a new migration file. ...@@ -21,7 +21,7 @@ $ sequelize migration:create # Generates a new migration file.
$ sequelize version # Prints the version number. $ sequelize version # Prints the version number.
``` ```
Further and more detailled information about the available commands Further and more detailed information about the available commands
can be obtained via the help command: can be obtained via the help command:
```bash ```bash
......
...@@ -320,7 +320,7 @@ To recap, the elements of the order / group array can be the following ...@@ -320,7 +320,7 @@ To recap, the elements of the order / group array can be the following
Sometimes you might be expecting a massive dataset that you just want to display, without manipulation. For each row you select, Sequelize creates an instance with functions for update, delete, get associations etc. If you have thousands of rows, this might take some time. If you only need the raw data and don't want to update anything, you can do like this to get the raw data. Sometimes you might be expecting a massive dataset that you just want to display, without manipulation. For each row you select, Sequelize creates an instance with functions for update, delete, get associations etc. If you have thousands of rows, this might take some time. If you only need the raw data and don't want to update anything, you can do like this to get the raw data.
```js ```js
// Are you expecting a masssive dataset from the DB, // Are you expecting a massive dataset from the DB,
// and don't want to spend the time building DAOs for each entry? // and don't want to spend the time building DAOs for each entry?
// You can pass an extra query option to get the raw data instead: // You can pass an extra query option to get the raw data instead:
Project.findAll({ where: ... }, { raw: true }) Project.findAll({ where: ... }, { raw: true })
...@@ -397,7 +397,7 @@ Project.sum('age').then(function(sum) { ...@@ -397,7 +397,7 @@ Project.sum('age').then(function(sum) {
}) })
Project.sum('age', { where: { age: { $gt: 5 } } }).then(function(sum) { Project.sum('age', { where: { age: { $gt: 5 } } }).then(function(sum) {
// wil be 50 // will be 50
}) })
``` ```
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!