tailcall icon indicating copy to clipboard operation
tailcall copied to clipboard

Stackoverflow Errors on recursive types

Open tusharmath opened this issue 1 year ago • 11 comments

Across the Config to Blueprint compiler the current implementation leverages recursion, which breaks whenever there are recursive types. There is no one strategy we can use everywhere to fix this.

Example

schema {
  query: Query
}

type Query {
  list: List
}

type List {
  head: Int!
  tail: List
}
tailcall start ./app.graphql

Additional Information

  • JsonSchema might need a bit of re-write. It doesn't support recursive types at the moment.

tusharmath avatar Dec 17 '23 05:12 tusharmath

/bounty 350$

tusharmath avatar Dec 17 '23 05:12 tusharmath

💎 $350 bounty created by tailcallhq 🙋 If you start working on this, comment /attempt #758 along with your implementation plan 👉 To claim this bounty, submit a pull request that includes the text /claim #758 somewhere in its body

🙏 Thank you for contributing to tailcallhq/tailcall!. 🧐 Checkout our guidelines before you get started.

Attempt Started (GMT+0) Solution
🟢 @A-N-uraag Dec 17, 2023, 5:32:51 AM WIP

algora-pbc[bot] avatar Dec 17 '23 05:12 algora-pbc[bot]

/attempt #758

A-N-uraag avatar Dec 17 '23 05:12 A-N-uraag

@A-N-uraag: The Tailcall Inc. team prefers to assign a single contributor to the issue rather than let anyone attempt it right away. We recommend waiting for a confirmation from a member before getting started.

algora-pbc[bot] avatar Dec 17 '23 05:12 algora-pbc[bot]

I know it's assigned, declaring myself willing to collaborate/on the queue on this one 🤚🏽

ologbonowiwi avatar Dec 17 '23 09:12 ologbonowiwi

hey @A-N-uraag your PR is closed is there anything left ?

Rutik7066 avatar Dec 26 '23 07:12 Rutik7066

Opening this up for everyone to attempt.

tusharmath avatar Dec 27 '23 07:12 tusharmath

@Rutik7066 this is your chance

ayewo avatar Dec 27 '23 07:12 ayewo

@Rutik7066 already has the issue #739 assigned to him.

tusharmath avatar Dec 27 '23 11:12 tusharmath

assigning back to @A-N-uraag since they have work in progress on it

meskill avatar Dec 29 '23 11:12 meskill

@tusharmath This progress seems blocked, could assign to me?

Shylock-Hg avatar Feb 05 '24 03:02 Shylock-Hg

@tusharmath could you assign to me?

KiranKBR avatar Feb 13 '24 06:02 KiranKBR

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

github-actions[bot] avatar Mar 14 '24 07:03 github-actions[bot]

@tusharmath is this still an issue?

digital-phoenix avatar Mar 16 '24 17:03 digital-phoenix

/attempt 758

ssddOnTop avatar Mar 19 '24 12:03 ssddOnTop

@ssddOnTop: We appreciate your enthusiasm but since you already have 3 active bounty attempts, we're going to keep this open for other contributors to attempt. 🫡

algora-pbc[bot] avatar Mar 19 '24 12:03 algora-pbc[bot]

/tip 100 @ssddOnTop

tusharmath avatar Apr 11 '24 11:04 tusharmath

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

algora-pbc[bot] avatar Apr 11 '24 11:04 algora-pbc[bot]