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

bug: allow support to list arguments. #1991

Open
2 tasks
laststylebender14 opened this issue May 20, 2024 · 0 comments
Open
2 tasks

bug: allow support to list arguments. #1991

laststylebender14 opened this issue May 20, 2024 · 0 comments

Comments

@laststylebender14
Copy link
Contributor

laststylebender14 commented May 20, 2024

Prerequisites

  • I have checked the existing issues to ensure this is not a duplicate.
  • I am running the latest version of Tailcall.

Describe the bug

following tailcall configurations doesn't work, it throws error saying can't use list type 'ids' here.

type Query {
   f(ids: [Int!]!): B @http(path: "api/v1/users?ids={{.args.ids}}")
}
type Query {
   f(ids: [Int!]!): B @http(path: "api/v1/users", query: [{key: "ids", value: "{{.args.ids}}"}])
}

Expected behavior

When passed list of arguments, it should get applied to path and should construct url accordingly.
eg.

  www.examples.com/api/v1/users?ids=1,2,3,4,5

Actual behavior

it throws error saying can't use list type 'ids' here.

Technical Requirements

  • When passed list of arguments, it should get applied to path and should construct url accordingly.
  • Add unit tests wherever necessary to cover the new functionality.
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

Successfully merging a pull request may close this issue.

1 participant