updateMapping method
- @Deprecated(''' Deprecated since 2.1.0 and will be removed. Please use Update instead''')
Updates a data collection
data mapping
.
Implementation
@Deprecated('''
Deprecated since 2.1.0 and will be removed. Please use Update instead''')
Future<Map<String, dynamic>> updateMapping(
String index,
String collection,
Map<String, dynamic> mapping,
) async {
final response = await kuzzle.query(KuzzleRequest(
controller: name,
action: 'updateMapping',
index: index,
collection: collection,
body: mapping,
));
return response.result as Map<String, dynamic>;
}