Connecting to PostgreSQL from MongoDB Atlas trigger

We are trying something similar. We tried to connect to MSSQL, but the mssql dependency couldnt be added in atlas function, the dependency resolution failed with some package named js-joda. Later we tried connecting to ftp using ftp package and ran into the same issue “‘tls’ module: not a TLS connection”