get #
Gets a document.
Arguments #
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 #
final result = await kuzzle
.document
.get('nyc-open-data', 'yellow-taxi', 'some-id');
Edit this page on Github(opens new window)