updateMapping method

  1. @Deprecated(''' Deprecated since 2.1.0 and will be removed. Please use Update instead''')
Future<Map<String, dynamic>> updateMapping(
  1. String index,
  2. String collection,
  3. Map<String, dynamic> mapping
)

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>;
}