Hi All,
As someone who is currently learning nodejs I've ran into a small issue and I'm now hitting my head against a wall.
I'm successfully on a POST request checking if a user exists and then inserting a new record against their account based on their ID.
Where I'm failing down is I can't retrieve the last inserted ID after new record creation. Documentation says to use: .insertId this returns 0 on every instance.
Could someone please give me a few pointers in the right direction?
Much appreciated.
Mat