I recently discovered Anypoint Studio and the first question that came up to me was: how can I access my MongoDB cluster?
This is the fastest solution I have found :)
With the sole purpose of being able to test our project later, I have added and configured an HTTP Listener:
- Open the Mule Palette view and select
Search in Exchange.
Make sure you choose the 6.3 version or higher.
Now we must include the connection string from our MongoDB atlas clusters.
- Go to your MongoDB Atlas project
Choose "Connect your application" and select
Javaas your application language (this is just for getting the connection string).
[If you are having issues check the project allowed IPs and the database allowed users in your MongoDB settings]
From the Mule pallete add
Insert documentelements and select as Connector_Configuration the config we have just created.
And that's all! I hope this information is useful for your projects :)