list method

Future<Map<String, dynamic>> list(
  1. String index, {
  2. int? from,
  3. int? size,
  4. String? type,
})

Returns the list of data collections associated to a provided data index.

The returned list is sorted in alphanumerical order.

Implementation

Future<Map<String, dynamic>> list(String index,
    {int? from, int? size, String? type}) async {
  final response = await kuzzle.query(KuzzleRequest(
    controller: name,
    action: 'list',
    index: index,
    from: from,
    size: size,
    type: type,
  ));

  return response.result as Map<String, dynamic>;
}