Skip to content

Tag: node.js

TypeORM – How to remove last added row?

I’m trying to remove only the last added row. Instead, of the last one, it removes all rows. I was thinking about adding where corresponding to the newest date but I feel it’s not a good approach to solve this problem. Answer Use a subquery to query the last insert row first, then delete this row …