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

Commit 02aa569e by Christopher Lis Committed by Sushant

docs(instances): simplify difference between build/save and create (#9196)

1 parent ba49c7f0
Showing with 1 additions and 1 deletions
......@@ -58,7 +58,7 @@ Task
## Creating persistent instances
Besides constructing objects, that needs an explicit save call to get stored in the database, there is also the possibility to do all those steps with one single command. It's called `create`.
While an instance created with `.build()` requires an explicit `.save()` call to be stored in the database, `.create()` omits that requirement altogether and automatically stores your instance's data once called.
```js
Task.create({ title: 'foo', description: 'bar', deadline: new Date() }).then(task => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!