我被告知我的 MongoDB 数据提供程序的连接字符串无效。
具体来说,我得到这个:The provided database string is invalid. MongoDB connection string error: Missing delimiting slash between hosts and options in database URL.
然而,我的问题是我的连接字符串确实有一个分隔斜杠:它是这样的:mongodb://<user>:<pass>@cluster0.<server>.mongodb.net/?retryWrites=true&w=majority
这是怎么回事?我有什么遗漏的吗?