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 · 2 comments · May be fixed by #2300
Open
2 tasks

bug: allow support to list arguments. #1991

laststylebender14 opened this issue May 20, 2024 · 2 comments · May be fixed by #2300
Assignees

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.
Copy link

Action required: Issue inactive for 30 days.
Status update or closure in 7 days.

@github-actions github-actions bot added the state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. label Jun 19, 2024
Copy link

Issue closed after 7 days of inactivity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 26, 2024
@tusharmath tusharmath reopened this Jun 26, 2024
@github-actions github-actions bot removed the state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. label Jun 26, 2024
@laststylebender14 laststylebender14 self-assigned this Jun 26, 2024
@laststylebender14 laststylebender14 linked a pull request Jun 27, 2024 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants