SDK
SDK Dart v2.x
2

get #

Gets a document.


Arguments #

Future<Map<String, dynamic>> get(
    String index,
    String collection,
    String id,
  )
ArgumentsTypeDescription
index
String
Index
collection
String
Collection
id
String
Document ID

Return #

A Map<String, dynamic> which has the following properties:

PropertyTypeDescription
_source
Map<String, dynamic>
Document content
_id
String
ID of the document
_version
int
Version of the document in the persistent data storage

Usage #

final result = await kuzzle
  .document
  .get('nyc-open-data', 'yellow-taxi', 'some-id');