mGet method

Future<Map<String, dynamic>> mGet(
  1. String index,
  2. String collection,
  3. List<String> ids
)

Gets multiple documents.

Implementation

Future<Map<String, dynamic>> mGet(
  String index,
  String collection,
  List<String> ids,
) async {
  final response = await kuzzle.query(KuzzleRequest(
    controller: name,
    action: 'mGet',
    index: index,
    collection: collection,
    body: <String, dynamic>{'ids': ids},
  ));

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