SDK
SDK Dart v2.x
2

updateRoleMapping #

Updates the internal role storage mapping.


Future<Map<String, dynamic>> updateRoleMapping(
      Map<String, dynamic> mapping)

PropertyTypeDescription
mapping
Map<String, dynamic>
Role collection mapping definition

Return #

Returns a Map representing the new mapping.

Usage #

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