到目前为止,在 arm 设备上还没有可用的 v2.0 版本。是否可以像这样以类似的方式在 v1.8.3 上查询数据库:let response = await fetch('http://localhost:8086/query', { method: 'POST', headers: { 'Content-Type': 'application/json;charset=utf-8' }, body: JSON.stringify({ "db":"test", "q":"select * from measurement" })});或者 application/x-www-form-urlencoded 是唯一适用的查询格式?
1 回答

万千封印
TA贡献1891条经验 获得超3个赞
是的,我相信用于查询的 1.x/query
端点InfluxQL
仅采用 urlencoded 数据。
URLSearchParams
您可以在api 中使用fetch
来设置 url 查询参数。
添加回答
举报
0/150
提交
取消