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

Using LTR together with the Go Typed-API Client? #470

Open
rajivprab opened this issue Aug 2, 2023 · 0 comments
Open

Using LTR together with the Go Typed-API Client? #470

rajivprab opened this issue Aug 2, 2023 · 0 comments

Comments

@rajivprab
Copy link

Are there any guidelines or suggestions around the best way to construct LTR queries using the Go Typed-API client? The client doesn't have support for keywords and structs like sltr. The only option I could think of was:

  1. Construct most of the query, without LTR, using the typed-api client
  2. Marshal the Request into a json-string
  3. Unmarshal the json-string into a generic map[string]interface{}
  4. Insert the LTR portion of the query into the above generic map
  5. Marshal the updated query back into a json
  6. Use the raw json functionality to run the updated query

Is there a better way of accomplishing the above?

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

1 participant