tailcallhq / tailcall

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

Support mustache templates in all `string` fields `generate::config` #2646

Closed tusharmath closed 2 weeks ago

tusharmath commented 1 month ago

Config should support mustache templates everywhere there is a "String" type.

Technical Requirements

Before

inputs:
- curl:
    src: https://example.com
    headers:
      user-agent: tailcall-v1
    fieldName: test
output: {}
schema: {}

After

inputs:
- curl:
    src: https://example.com
    headers:
      user-agent: "{{.env.USER}}"
    fieldName: test
output: {}
schema: {}
preset:
  inferTypeNames: true
tusharmath commented 1 month ago

/bounty 50$

algora-pbc[bot] commented 1 month ago

💎 $50 bounty • Tailcall Inc.

Steps to solve:

  1. Start working: Comment /attempt #2646 with your implementation plan
  2. Submit work: Create a pull request including /claim #2646 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
🟢 @dekkku Aug 11, 2024, 7:51:59 AM WIP
🟢 @ssddOnTop #2657
dekkku commented 1 month ago

/attempt #2646

Algora profile Completed bounties Tech Active attempts Options
@dekkku 2 tailcallhq bounties
Rust
Cancel attempt
algora-pbc[bot] commented 1 month ago

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

algora-pbc[bot] commented 2 weeks ago

🎉🎈 @ssddOnTop has been awarded $50! 🎈🎊