Apache NiFi connection to MongoDB

Hi,

I would like to know how to find the URL to connect Apache NiFi to MongoDB.
I am very new to Mongo.
I have the below mentioned masked string with which I connect to compass

mongodb:://xxuser:xxxxxx@yy.yy.yyy:yyyyy/users?authSource=users&readPreference=primary&appname=MongoDB%20Compass&ssl=false.

How do I find the string to connect to NiFi from compass and ingest the data from there?

Thank you for your help