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 6fb971f9
authored
Mar 30, 2016
by
Jan Aagaard Meier
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5673 from krmannix/datatype-doc-fix
[ci skip] Minor Docs fix
2 parents
9ddb152e
c01d452d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
docs/api/datatypes.md
lib/data-types.js
docs/api/datatypes.md
View file @
6fb971f
...
...
@@ -265,6 +265,7 @@ sequelize.define('user', {
}
})
```
In the above code the password is stored plainly in the password field so it can be validated, but is never stored in the DB.
VIRTUAL also takes a return type and dependency fields as arguments
If a virtual attribute is present in
`attributes`
it will automatically pull in the extra fields as well.
...
...
@@ -280,7 +281,6 @@ Return type is mostly useful for setups that rely on types like GraphQL.
}
```
In the above code the password is stored plainly in the password field so it can be validated, but is never stored in the DB.
__Aliases:__
NONE
***
...
...
lib/data-types.js
View file @
6fb971f
...
...
@@ -739,6 +739,7 @@ UUIDV4.prototype.validate = function(value) {
* }
* })
* ```
* In the above code the password is stored plainly in the password field so it can be validated, but is never stored in the DB.
*
* VIRTUAL also takes a return type and dependency fields as arguments
* If a virtual attribute is present in `attributes` it will automatically pull in the extra fields as well.
...
...
@@ -754,7 +755,6 @@ UUIDV4.prototype.validate = function(value) {
* }
* ```
*
* In the above code the password is stored plainly in the password field so it can be validated, but is never stored in the DB.
* @property VIRTUAL
* @alias NONE
*/
...
...
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