System Information
- Strapi Version:
- Operating System:
- Database:
- Node Version:
- NPM Version:
- Yarn Version:
I have a many to many ( users-permissions plugin and groups ) .
I kindly ask about querying the plugin within relation ?
I have a many to many ( users-permissions plugin and groups ) .
I kindly ask about querying the plugin within relation ?
Hi @Louai_Aloui
You can use something like
await strapi
.query('user', 'users-permissions')
.find({ _limit: 1 });
This will find all users but you could always customize this, I think that this will also return the groups ?
I want to push item (user) in content-type (group) attribute-array