Skip to main content

validateSyntax

@webda/ql


Function: validateSyntax()

validateSyntax(query): void

Defined in: packages/ql/src/query.ts:1391

Check a query against the WebdaQL grammar without evaluating it

Unlike QueryValidator, unbound ? / :name parameters are accepted, so a query can be checked before its parameters are bound.

Parameters​

query​

string

the query string

Returns​

void

Throws​

if the query does not follow the grammar