Added/updated snippets for docs (#2318)
This commit is contained in:
12
docs/doc_examples/9de4edafd22a8b9cb557632b2c8779cd.asciidoc
Normal file
12
docs/doc_examples/9de4edafd22a8b9cb557632b2c8779cd.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({
|
||||
query:
|
||||
'\n FROM library\n | EVAL year = DATE_EXTRACT("year", release_date)\n | WHERE page_count > ?1 AND author == ?2\n | STATS count = COUNT(*) by year\n | WHERE count > ?3\n | LIMIT 5\n ',
|
||||
params: [300, "Frank Herbert", 0],
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user