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 bea761e7
authored
Jun 22, 2015
by
Pranav Raj S
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed errors in query
1 parent
377587a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
docs/docs/querying.md
docs/docs/querying.md
View file @
bea761e
...
@@ -21,7 +21,7 @@ Post.findAll({
...
@@ -21,7 +21,7 @@ Post.findAll({
status: active
status: active
}
}
});
});
// SELECT * FROM post WHERE authorId = 12
// SELECT * FROM post WHERE authorId = 12
AND status = 'active';
Post.destroy({
Post.destroy({
where: {
where: {
...
@@ -31,7 +31,7 @@ Post.destroy({
...
@@ -31,7 +31,7 @@ Post.destroy({
// DELETE FROM post WHERE status = 'inactive';
// DELETE FROM post WHERE status = 'inactive';
Post.update({
Post.update({
dele
tedAt: null,
upda
tedAt: null,
}, {
}, {
where: {
where: {
deletedAt: {
deletedAt: {
...
...
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