get method

Future<Map<String, dynamic>> get(
  1. String index,
  2. String collection,
  3. String id
)

Get a document

Implementation

Future<Map<String, dynamic>> get(
  String index,
  String collection,
  String id,
) async {
  final response = await kuzzle.query(KuzzleRequest(
    controller: name,
    action: 'get',
    index: index,
    collection: collection,
    uid: id,
  ));

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