tailcallhq / tailcall

High Performance GraphQL Runtime
https://tailcall.run
Apache License 2.0
1.26k stars 237 forks source link

Query Parameters Not Converted to camelCase in Generated GraphQL Config #2559

Closed amitksingh1490 closed 1 month ago

amitksingh1490 commented 1 month ago

Issue Description

In the config generator, when query parameters from a URL are converted to GraphQL queries, the original case is preserved instead of being converted to camelCase.

Actual Output:

myOrders(page_number: Int): MyOrder @http(path: "/api/v2/order/", query: [{key: "page_number", value: "{{.args.page_number}}"}])

Expected Output:

myOrders(pageNumber: Int): MyOrder @http(path: "/api/v2/order/", query: [{key: "page_number", value: "{{.args.pageNumber}}"}])
amitksingh1490 commented 1 month ago

/bounty 25$

algora-pbc[bot] commented 1 month ago

💎 $25 bounty • Tailcall Inc.

Steps to solve:

  1. Start working: Comment /attempt #2559 with your implementation plan
  2. Submit work: Create a pull request including /claim #2559 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

🙏 Thank you for contributing to tailcallhq/tailcall! 🧐 Checkout our guidelines before you get started. 💵 More about our bounty program.

Attempt Started (GMT+0) Solution
🔴 @mehulmathur16 Jul 28, 2024, 12:31:52 PM WIP
🟢 @laststylebender14 #2565
mehulmathur16 commented 1 month ago

/attempt #2559

Algora profile Completed bounties Tech Active attempts Options
@mehulmathur16    18 tailcallhq bounties
+ 8 bounties from 4 projects
TypeScript, Rust,
HTML & more
Cancel attempt
algora-pbc[bot] commented 1 month ago

💡 @laststylebender14 submitted a pull request that claims the bounty. You can visit your bounty board to reward.

algora-pbc[bot] commented 1 month ago

The bounty is up for grabs! Everyone is welcome to /attempt #2559 🙌

algora-pbc[bot] commented 1 month ago

@laststylebender14: You've been awarded a $25 bounty by tailcallhq! 👉 Complete your Algora onboarding to collect the bounty.

algora-pbc[bot] commented 1 month ago

🎉🎈 @laststylebender14 has been awarded $25! 🎈🎊