* [docs] update readme and examples to use async/await * [apis] regenerate (including updated examples)
10 lines
170 B
Plaintext
10 lines
170 B
Plaintext
.Check that the document `/myindex/mytype/1` exist
|
|
[source,js]
|
|
---------
|
|
const exists = await client.exists({
|
|
index: 'myindex',
|
|
type: 'mytype',
|
|
id: 1
|
|
});
|
|
---------
|