getMapping #
Returns the collection mapping.
Future<Map<String, dynamic>> getMapping(String index, String collection,
{bool includeKuzzleMeta = false})
Arguments | Type | Description |
---|---|---|
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');
Edit this page on Github(opens new window)