Nodejs not waiting for mysql response in ForLoop
I’ve a condition where I need to check weather the value exist in mysql or not if value exists then we need to update if not then we need to insert. here I’m using this condition but because of async task nodejs not waiting for response and when response come it’s not checking it’s just inserting data, please have a look