Files
elasticsearch-js/docs/_examples/exists.asciidoc
Spencer 83a464ac66 Update docs to use async/await (#667)
* [docs] update readme and examples to use async/await

* [apis] regenerate (including updated examples)
2018-05-23 14:31:34 -07:00

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
});
---------