Here’s what I would do (seem to be working for me) :
- Create a collection called city, add the fields you need, Strapi will then generate the files needed in the api folder.
- navigate to api/city/models/city.settings.json, and add at the top of the code
{
“connection”: “courses”,//this being the name of the connector you added in database.js
“kind”: “collectionType”,
“collectionName”: “cities”,
…
}
save the file, build and run again, remember to add the role rights needed.
this will make it seem like the data is stored in the same database, although it is running from the same api, the data will then be stored in the courses database.
hope this helps