SDK
SDK Dart Null Safety v3.x
2

exists #

Checks if a document exists.


Arguments #

Future<bool> exists(String index, String collection, String id)

ArgumentsTypeDescription
index
String
Index
collection
String
Collection
id
String
Document ID

Return #

Returns a boolean.

Usage #

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