I am new to both Nodejs and Postgres. I am attempting to build a small node application using express to just connect to a postgres DB and do a simple query. I found this guide, https://node-postgres.com/, and have installed this pg package.
I cut and pasted the first block of code into my method, and it won't run. It is crashing at the following line. If I take the await keyword out completely and start the server, it runs, but the query doesn't work.
await client.connect()