exists #
Checks if a document exists.
Arguments #
Copied to clipboard!
public CompletableFuture<Boolean> exists(
String index,
String collection,
String id)
throws NotConnectedException, InternalException
Arguments | Type | Description |
---|---|---|
index | String | Index |
collection | String | Collection |
id | String | Document ID |
Return #
Returns a boolean.
Usage #
Copied to clipboard!
Boolean result = kuzzle
.getDocumentController()
.exists("nyc-open-data", "yellow-taxi", "some-id")
.get();
Arguments #
Copied to clipboard!
fun exists(
index: String,
collection: String,
id: String): CompletableFuture<Boolean>
Arguments | Type | Description |
---|---|---|
index | String | Index |
collection | String | Collection |
id | String | Document ID |
Return #
Returns a boolean.
Usage #
Copied to clipboard!
val result: Boolean = kuzzle
.documentController
.exists("nyc-open-data", "yellow-taxi", "some-id")
.get()
Edit this page on Github (opens new window)