Auto-generated code for main (#2522)

This commit is contained in:
Elastic Machine
2024-12-05 19:28:38 +00:00
committed by GitHub
parent 6447fc10bf
commit a4315a905e
122 changed files with 3130 additions and 25672 deletions

View File

@ -3,7 +3,9 @@
[source, js]
----
const response = await client.esql.asyncQuery({
const response = await client.transport.request({
method: "POST",
path: "/_query/async",
body: {
query:
"\n FROM library\n | EVAL year = DATE_TRUNC(1 YEARS, release_date)\n | STATS MAX(page_count) BY year\n | SORT year\n | LIMIT 5\n ",