Show Collection created by custom plugin in data source manager

I tried to develop plugin with several collections. What I wanted is that when I enable the plugin, the collection defined by this plugin can be view/edit in the data source manager (the page that managing collections). And it will be hide when disabling the plugin.

I saw there is a sample “hello” collection created in the sample plugin hello, but I have no idea how to show this collection in the frontend.

Is anyone having an idea or experience on doing it?

Sorry amigo, I’m having a similar issue, let me know if you get an answer. I’m creating from a nodejs server and can’t get the collection to show up in the system.

Hi, you can refer to this method:

We’ll soon add a new property in defineCollection to make this easier to implement.

Note: Once added to the UI, the change is irreversible — even if the plugin is disabled, the collection will still exist.

I have tried the repo.db2cm() function but this seems not working for me
And I found that in the Database (I am using postgresql), there is a collections & fields table. When I add the corresponding records to these two tables and I can see the my collection in data source management page.

Hope this may help