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

Commit b72fc878 by Mick Hansen

[ci skip] docs: change findOrCreate examples to .spread()

1 parent 2127e4cd
Showing with 3 additions and 3 deletions
......@@ -590,7 +590,7 @@ Let's assume we have an empty database with a `User` model which has a `username
```js
User
.findOrCreate({ username: 'sdepold' }, { job: 'Technical Lead JavaScript' })
.then(function(user, created) {
.spread(function(user, created) {
console.log(user.values)
console.log(created)
 
......@@ -614,7 +614,7 @@ User
.then(function() {
User
.findOrCreate({ username: 'fnord' }, { job: 'something else' })
.then(function(user, created) {
.spread(function(user, created) {
console.log(user.values)
console.log(created)
 
......@@ -835,7 +835,7 @@ Project.count({ where: ["id > ?", 25] }).then(function(c) {
### max - Get the greatest value of a specific attribute within a specific table
And here is a method for getting the max value of an attribute:
And here is a method for getting the max value of an attribute:f
```js
/*
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!