nestjstypeormnode.js-typeorm

which is Better in typeorm Save Or Update


I was working on a project and I wanted to update the data but I don't know which is the faster way to update data SAVE() method or Update()

this.repo.save({
id:id,
data})

Solution

  • use update() for update entity partially.