Reference the connection to retool postgres resource in javascript

Please how can I get the reference to my postgres connection in a javascript block.

I want to manually insert data into a table I created. The table has a json column in it.
I have ask about it here: Insert record to table with jsonb column but no body has replied.

So I want to do it manually.

I have a postgres resource set up, how can I get reference to that connection with out having to define a connection string in the javascript code?

Hi @mathiasmike, it looks like your issue was resolved on the original topic. I'll close this one.