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

Commit f3110e32 by Yuping Zuo Committed by Pedro Augusto de Paula Barbosa

docs(upgrade-to-v6): remove confusing fat arrow in snippet (#11769)

1 parent 712335b0
Showing with 2 additions and 2 deletions
......@@ -36,12 +36,12 @@ This method now tests for equality with `_.isEqual` and is now deep aware. Modif
const instance = await MyModel.findOne();
instance.myJsonField.a = 1;
console.log(instance.changed()) => false
console.log(instance.changed()); // logs `false`
await instance.save(); // this will not save anything
instance.changed('myJsonField', true);
console.log(instance.changed()) => ['myJsonField']
console.log(instance.changed()); // logs `["myJsonField"]`
await instance.save(); // will save
```
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!