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

Commit a5e4e69e by Mick Hansen

[ci skip] Remove notice about promises from fndORCreate

1 parent 78a1dc81
Showing with 0 additions and 2 deletions
...@@ -634,8 +634,6 @@ User ...@@ -634,8 +634,6 @@ User
... the existing entry will not be changed. See the `job` of the second user, and the fact that created was false. ... the existing entry will not be changed. See the `job` of the second user, and the fact that created was false.
Notice that the success callback has two arguments. When using [promises][5] you should call `spread` [(API ref)][6] instead of `then`, since `then` will only recieve the first argument (the DAO), while `spread` will recieve both the DAO, and the `created` boolean.
### findAndCountAll - Search for multiple elements in the database, returns both data and total count ### findAndCountAll - Search for multiple elements in the database, returns both data and total count
This is a convienience method that combines`findAll()`and`count()`(see below), this is useful when dealing with queries related to pagination where you want to retrieve data with a`limit`and`offset`but also need to know the total number of records that match the query. This is a convienience method that combines`findAll()`and`count()`(see below), this is useful when dealing with queries related to pagination where you want to retrieve data with a`limit`and`offset`but also need to know the total number of records that match the query.
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!