question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

save is not update

See original GitHub issue

Issue type:

[ ] question [ √] bug report [ ] feature request [ ] documentation issue

Database system/driver:

[ ] cordova [ ] mongodb [ ] mssql [ √] mysql / mariadb [ ] oracle [ ] postgres [ ] cockroachdb [ ] sqlite [ ] sqljs [ ] react-native [ ] expo

TypeORM version:

[ ] latest [ ] @next [√ ] 0.2.18 (or put your version here)

Steps to reproduce or a small repository showing the problem:

image

image

I want update verify field ,but is not

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
4ndt3scommented, Aug 28, 2019

Is id the primary key? Then specify id in the entity.

0reactions
brunoleonardobrcommented, Mar 9, 2022

In this case:

let i = await Model.findOne(id)
if (i) {
   i.prop = newProp
   await Model.save(i)
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Jpa Repository save() doesn't update existing data
Show activity on this post. I am trying to update data and as I know save() method saves entity if the id is...
Read more >
Update with save() doesn't work - Laracasts
Hello everyone, I have a strange problem. I'm trying to update a database entry with the save function, but the changed columns won't...
Read more >
CoreData not updating when saved (Swift) - Apple Developer
I am trying to get the data I update in an entity within CoreData to save; however, I change the values and yet...
Read more >
Solved: Workflow update not saving - Atlassian Community
Solved: I've updated my individual Jira project workflow but I am getting an error message when I'm trying to save my changes problem:...
Read more >
Error "Could not update value." when trying to save a view in ...
Actual Results: A 'Could not update value.' message gets thrown. The attribute gets removed from the view in the UI, but it remains...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found