I basically have an array of usernames in my node.js code. I need to perform some actions for each username. I need to check if the user exists in the database or not. If it doesn't, create it with a value of 5 in my points column. If it does exist, add 5 to it's existing points score.What would be the best way of doing this without speaking to the database many many times to request each object indivudally?Any ideas?
Submitted March 11, 2017 at 08:11PM by 23MPK
No comments:
Post a Comment