Added/updated snippets for docs (#2318)
This commit is contained in:
12
docs/doc_examples/c4607ca79b2bcde39305d6f4f21cad37.asciidoc
Normal file
12
docs/doc_examples/c4607ca79b2bcde39305d6f4f21cad37.asciidoc
Normal file
@ -0,0 +1,12 @@
|
||||
// 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.esql.query({
|
||||
locale: "fr-FR",
|
||||
query:
|
||||
'\n ROW birth_date_string = "2023-01-15T00:00:00.000Z"\n | EVAL birth_date = date_parse(birth_date_string)\n | EVAL month_of_birth = DATE_FORMAT("MMMM",birth_date)\n | LIMIT 5\n ',
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user