Allow the mongoDB Atlas connection to be grouped through ufw

Just what the title says, my ufw has a closed ship and I have no idea how to pass the connection of the atlas.

I am extremely grateful for any help in this.

I am running ubuntu 16.04 and I connect to the atlas cluster with mongoose in a nodejs application.