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