Files
elasticsearch-js/docs/doc_examples/a8add749c3f41ad1308a45308df14103.asciidoc
github-actions[bot] b4eb8e5441 [Backport 8.15] Added/updated snippets for docs (#2319)
(cherry picked from commit f737290d10)

Co-authored-by: Josh Mock <joshua.mock@elastic.co>
2024-07-29 17:10:42 -05:00

30 lines
636 B
Plaintext

// 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: "sales",
id: 1,
refresh: "true",
document: {
tags: ["car", "auto"],
comments: [
{
username: "baddriver007",
comment: "This car could have better brakes",
},
{
username: "dr_who",
comment: "Where's the autopilot? Can't find it",
},
{
username: "ilovemotorbikes",
comment: "This car has two extra wheels",
},
],
},
});
console.log(response);
----