SDK
SDK Dart v2.x
2

getMapping #

Returns the collection mapping.


Future<Map<String, dynamic>> getMapping(String index, String collection,
      {bool includeKuzzleMeta = false})

ArgumentsTypeDescription
index
String
Index name
collection
String
Collection name
includeKuzzleMeta
bool
Wether or not you want to include the metadata mapping

Returns #

Returns a Future<Map<String, dynamic>> representing the collection mapping.

Usage #

final result = await kuzzle
  .collection
  .getMapping('nyc-open-data', 'yellow-taxi');