SDK
SDK Dart Null Safety v3.x
2

updateRoleMapping #

Updates the internal role storage mapping.


Copied to clipboard!
Future<Map<String, dynamic>> updateRoleMapping(
      Map<String, dynamic> mapping)

Property Type Description
mapping
Map<String, dynamic>
Role collection mapping definition

Return #

Returns a Map representing the new mapping.

Usage #

Copied to clipboard!
final result = await kuzzle.security.updateRoleMapping({
  'properties': {
    'description': { 'type': 'text' }
  }
});
/*
{
  properties: {
    description: { type: 'text' }
  }
}
*/