How to query collections from custom plugin in strapi?

That would be for custom plugins, but what if I just want to query basic collection types such as pages, I would do something like

const contentTypes = await request(‘/admin/plugins/content-manager/collectionType/application::pages.pages’);

Right? But I don’t think that works

EDIT: Nevermind I got the URl wrong it should be something like content-manager/collection-types/application::pages.pages?page=1&pageSize=10&_sort=title:ASC&_locale=en-UK

@boaz Thanks :slight_smile:

1 Like