SDK
SDK Dart Null Safety v3.x
2

get #

Gets a document.


Arguments #

Copied to clipboard!
Future<Map<String, dynamic>> get(
    String index,
    String collection,
    String id,
  )
Arguments Type Description
index
String
Index
collection
String
Collection
id
String
Document ID

Return #

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

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

Usage #

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