updateUserMapping #
Updates the internal user storage mapping.
Future<Map<String, dynamic>> updateUserMapping(
Map<String, dynamic> mapping)
Property | Type | Description |
---|---|---|
mapping | Map<String, dynamic> | User collection mapping definition |
Return #
Returns a Map representing the new mapping.
Usage #
final result = await kuzzle.security.updateUserMapping({
'properties': {
'firstName': { 'type': 'text' },
'lastName': { 'type': 'text' },
'birthDate': {
'type': 'date',
'format': 'yyyy-mm-dd'
}
}
});
/*
{
properties: {
firstName: { type: 'text' },
lastName: { type: 'text' },
birthDate: {
type: 'date',
format: 'yyyy-mm-dd'
}
}
}
*/
Edit this page on Github(opens new window)