Files
elasticsearch-js/docs/doc_examples/1aa91d3d48140d6367b6cabca8737b8f.asciidoc
2024-07-29 17:10:05 -05:00

43 lines
632 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.bulk({
operations: [
{
update: {
_id: "5",
_index: "index1",
},
},
{
doc: {
my_field: "foo",
},
},
{
update: {
_id: "6",
_index: "index1",
},
},
{
doc: {
my_field: "foo",
},
},
{
create: {
_id: "7",
_index: "index1",
},
},
{
my_field: "foo",
},
],
});
console.log(response);
----