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: throw validation error when batchKey is present in resolver and that field is of list type. #3113

Closed
laststylebender14 opened this issue Nov 18, 2024 · 0 comments
Assignees

Comments

@laststylebender14
Copy link
Contributor

laststylebender14 commented Nov 18, 2024

in this scenario, batchKey doesn't make sense as this resolver will always return single user, so raise validation error here.

type Query {
  user(userIds: [Int]): [User]
    @http(
      url: "http://jsonplaceholder.typicode.com/users"
      query: [{key: "id", value: "{{.args.userIds}}"}]
      batchKey: ["id"]
    )
}
@laststylebender14 laststylebender14 changed the title bug: throw validation error when batchKey user in IR is of list type. bug: throw validation error when batchKey is present in resolver and that field is of list type. Nov 18, 2024
@laststylebender14 laststylebender14 self-assigned this Nov 18, 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
1 participant