I opened the topic at How to query collections from custom plugin in strapi?
You can follow it to find solutions.