SDK
SDK Dart Null Safety v3.x
2

mGetRoles #

Gets multiple security roles.


Future<List<KuzzleRole>> mGetRoles(
    List<String> ids)

PropertyTypeDescription
idsList<String>Roles identifiers

Resolves #

A List of retrieved Role objects.

Usage #

final result = await kuzzle.security.mGetRoles([
  'role1',
  'role2',
  'role3'
]);
/*
[ Role {
    _id: 'role1',
    controllers: { '*': [Object] } },
  Role {
    _id: 'role2',
    controllers: { '*': [Object] } },
  Role {
    _id: 'role3',
    controllers: { '*': [Object] } } ]
*/