Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit f3110e32
authored
Dec 27, 2019
by
Yuping Zuo
Committed by
Pedro Augusto de Paula Barbosa
Dec 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs(upgrade-to-v6): remove confusing fat arrow in snippet (#11769)
1 parent
712335b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
docs/manual/upgrade-to-v6.md
docs/manual/upgrade-to-v6.md
View file @
f3110e3
...
...
@@ -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
```
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment