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

15 lines
365 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.sql.query({
format: "json",
keep_alive: "2d",
wait_for_completion_timeout: "2s",
query: "SELECT * FROM library ORDER BY page_count DESC",
fetch_size: 5,
});
console.log(response);
----