Files
elasticsearch-js/docs/_examples/get.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
143 B
Plaintext

.Get `/myindex/mytype/1`
[source,js]
---------
const response = await client.get({
index: 'myindex',
type: 'mytype',
id: 1
});
---------