Skip to content

Commit 9771a0b

Browse files
committed
Fix params to accept any values
Values can look like {"n1": "5"}, for example, with `n1` being an arbitrary key.
1 parent 3646cd6 commit 9771a0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

specification/esql/query/QueryRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
import { RequestBase } from '@_types/Base'
2121
import { QueryContainer } from '@_types/query_dsl/abstractions'
22-
import { ScalarValue } from '@_types/common'
22+
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2323

2424
/**
2525
* Executes an ES|QL request
@@ -62,7 +62,7 @@ export interface Request extends RequestBase {
6262
* To avoid any attempts of hacking or code injection, extract the values in a separate list of parameters. Use question mark placeholders (?) in the query string for each of the parameters.
6363
* @doc_id esql-query-params
6464
*/
65-
params?: Array<ScalarValue>
65+
params?: Array<UserDefinedValue>
6666
profile?: boolean
6767
/**
6868
* The ES|QL query API accepts an ES|QL query string in the query parameter, runs it, and returns the results.

0 commit comments

Comments
 (0)