SDK
SDK Dart v2.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' }
    }
  }
*/