[15.x] Update docs to use async/await (#667) (#668)

Backports the following commits to 15.x:
 - Update docs to use async/await  (#667)
This commit is contained in:
Spencer
2018-05-23 14:32:16 -07:00
committed by GitHub
parent 6af25b52a7
commit 9e3b71510f
33 changed files with 1364 additions and 1760 deletions

View File

@ -1,11 +1,9 @@
.Delete the document `/myindex/mytype/1`
[source,js]
---------
client.delete({
await client.delete({
index: 'myindex',
type: 'mytype',
id: '1'
}, function (error, response) {
// ...
});
---------
---------