How to query collections from custom plugin in strapi?

@davidparys

You will have to define a route in your plugins backend, which will return this value.

Then in the frontend you can query the route like so

Import { request } from ‘strapi-helper-plugin’;

Const contentTypes = await request(‘/custom-plugin-route’);
2 Likes