I think you need to look at a 3rd party module to be able to integrate with a MongoDB database. There are several in the Marketplace.
https://marketplace.mendix.com/link/component/212445
https://marketplace.mendix.com/link/component/208152
Good luck!