我正在使用Strapi创建一个新应用程序,尝试将其与托管在Digital Ocean上的MongoDB连接,但不幸的是,Strapi无法从现有的MongoDB获取集合。以下是我遵循的完整步骤,以实现Strapi与现有MongoDB的连接:
I have followed this guide step by step to create a Strapi Application: Quick_Start_Strapi
Although, I need to connect to my existing MongoDB which is hosted on Digital Ocean. So, as per Strapi documentaion, I have mentioned all the credentials ( host, port, username, password ) of my existing Database only on the creation of the Strapi Application.
In the last, when application is created successfully, I have switched my current directory to project directory and run the command:
$ strapi start
I haven't faced any error in the terminal , consequently, that means
The connection is successful
Then, I have registered myself through Strapi Register Panel.
- After logging into the application, there is only one collection is shown on the Strapi Dashboard that is the "Users Collection". Strapi failed to load any collection from existing MongoDB. In terms of Strapi, it failed to load any Content-Types.