mirror of
https://github.com/strapi/strapi.git
synced 2025-12-25 06:04:29 +00:00
Add description to explain specificities of the roles query
This commit is contained in:
parent
73764d6ae0
commit
78e69cebd5
@ -13,6 +13,7 @@ module.exports = {
|
||||
}
|
||||
},
|
||||
roles: {
|
||||
description: `Retrieve all the existing roles. You can't apply filters on this query.`,
|
||||
resolverOf: 'UsersPermissions.getRoles', // Apply the `getRoles` permissions on the resolver.
|
||||
resolver: async (obj, options, ctx) => {
|
||||
await strapi.plugins['users-permissions'].controllers.userspermissions.getRoles(ctx);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user