You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Syntactically incorrect - the '=' after query_parameters gives the following error: "Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."
Code:
client
.runQuery(queryID, params)
Error: Expected 1 arguments, but got 2.
The code appears to have been updated to :
client
.runQuery({ queryId, query_parameters })
.then((response) => console.log(response.result?.rows));
Path: /api-reference/overview/sdks
Code:
const params = {
query_parameters = [
QueryParameter.text("TextField", "Plain Text"),
QueryParameter.number("NumberField", 3.1415926535),
QueryParameter.date("DateField", "2022-05-04 00:00:00"),
QueryParameter.enum("ListField", "Option 1"),
]
};
Issues:
Code:
client
.runQuery(queryID, params)
The code appears to have been updated to :
client
.runQuery({ queryId, query_parameters })
.then((response) => console.log(response.result?.rows));
Reference: https://github.com/bh2smith/demo-ts-dune-client/blob/main/src/index.ts
The text was updated successfully, but these errors were encountered: