Skip to content
This repository has been archived by the owner on Oct 15, 2018. It is now read-only.

can't update something self #137

Open
shoutleafy opened this issue Jan 17, 2017 · 0 comments
Open

can't update something self #137

shoutleafy opened this issue Jan 17, 2017 · 0 comments

Comments

@shoutleafy
Copy link

shoutleafy commented Jan 17, 2017

hi ,all

how can i update a data add from itself in waterline,
in SQL query just like this: " update news_table set count_num = count_num+1 where id = 1; "
News_table
.update(
{id:1},
{count_num :'count_num + 1'}
)
.exec(function afterwards(err, updated){
//do something
}
but not work,how can i write it? tks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant