xpack.sql.queryedit

client.xpack.sql.query({
  format: string,
  body: object
})

link:Execute SQL[Reference]

format

string - a short version of the Accept header, e.g. json, yaml

body

object - Use the query element to start a query. Use the cursor element to continue a query.