lookupByKeys method

Future<List<Map<String, dynamic>>> lookupByKeys(
  1. List<String> keys
)

Implementation

Future<List<Map<String, dynamic>>> lookupByKeys(List<String> keys) async {
  final resp = await _connection.request(
    method: 'PUT',
    path: '/_api/simple/lookup-by-keys',
    body: {'keys': keys, 'collection': name},
  );
  return List<Map<String, dynamic>>.from(resp.body['documents']);
}