最佳答案
查看 auth功能。来自文档:
auth :: MonadIO' m => Username -> Password -> Action m Bool
Authenticate with the current database (if server is running in secure mode). Return whether authentication was successful or not. Reauthentication is required for every new pipe.
关于mongodb - 在 Haskell 中授权连接到 mongoDB,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14893001/