SDK
SDK Dart Null Safety v3.x
2

updateProfileMapping #

Updates the internal profile storage mapping.


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

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

Return #

Returns an object representing the new mapping.

Usage #

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