Added/updated snippets for docs (#2318)
This commit is contained in:
19
docs/doc_examples/2ebcdd00ccbf26b4c8e6d9c80dfb3d55.asciidoc
Normal file
19
docs/doc_examples/2ebcdd00ccbf26b4c8e6d9c80dfb3d55.asciidoc
Normal file
@ -0,0 +1,19 @@
|
||||
// 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: "example",
|
||||
document: {
|
||||
location: {
|
||||
type: "linestring",
|
||||
coordinates: [
|
||||
[-377.03653, 389.897676],
|
||||
[-377.009051, 389.889939],
|
||||
],
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user