Files
elasticsearch-js/docs/_examples/exists.asciidoc
Spencer 9e3b71510f [15.x] Update docs to use async/await (#667) (#668)
Backports the following commits to 15.x:
 - Update docs to use async/await  (#667)
2018-05-23 14:32:16 -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
});
---------