Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue on docs #395

Closed
charleslukes opened this issue Sep 11, 2024 · 0 comments
Closed

Issue on docs #395

charleslukes opened this issue Sep 11, 2024 · 0 comments

Comments

@charleslukes
Copy link

Path: /api-reference/overview/sdks

The Typescript example has a syntax error

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"),
  ]
};

should be

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"),
  ]
};

Also client.runQuery

client
  .runQuery(queryID, params)

accepts only one parameter not two like the above, an object of type RunQueryArgs

@mewwts mewwts closed this as completed Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants