Added/updated snippets for docs (#2318)
This commit is contained in:
14
docs/doc_examples/b7c99eb38d4b37e22de1ffcb0e88ae4c.asciidoc
Normal file
14
docs/doc_examples/b7c99eb38d4b37e22de1ffcb0e88ae4c.asciidoc
Normal file
@ -0,0 +1,14 @@
|
||||
// This file is autogenerated, DO NOT EDIT
|
||||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
|
||||
|
||||
[source, js]
|
||||
----
|
||||
const response = await client.index({
|
||||
index: "my-index-000001",
|
||||
id: 2,
|
||||
document: {
|
||||
message: "A new bonsai tree in the office",
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user