indexes method

Future<List<Map<String, dynamic>>> indexes()

Implementation

Future<List<Map<String, dynamic>>> indexes() async {
  final resp = await _connection.request(
    path: '/_api/index',
    queries: {'collection': name},
  );
  return List<Map<String, dynamic>>.from(resp.body['indexes']);
}