How can I use/import strapi.query in a plugin v4?

System Information
  • Strapi Version: 4
  • Operating System:
  • Database:
  • Node Version:
  • NPM Version:
  • Yarn Version:

I created a simple plugin in v4 and inside plugin I need to get some data from database. But I don’t know how can I use or import “strapi.db.query” or “strapi.entityService”?

E.g.: I want to print some data from database in plugin page. How can I

Can anybody help me please?

1 Like

Hello, I have the same issue. I don’t know and I don’t find where to get strapi object in order to use “strapi.db.query” or “strapi.entityService”.