Skip to content

UtilsApi sql query error after update to v 7.0.0 #22

@marz0405

Description

@marz0405

Just updated from v 4.0.0 to 7.0.0 and I get this error when running an sql query.
var res = await utils.sql('SELECT VERSION() as v');
Error: Multiple matches found constructing 'SqlResponse' with oneOf schemas Object, [Object]. Input: [{"columns":[{"v":{"type":"string"}}],"data":[{"v":"7.4.6 b2ff82920@25022808"}],"total":1,"error":"","warning":""}]
what changes do I have to make to my sql queries for this to work? I checked the docs and I can't see what I've done wrong.
https://github.com/manticoresoftware/manticoresearch-javascript/blob/master/docs/UtilsApi.md#sql

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions