cynic icon indicating copy to clipboard operation
cynic copied to clipboard

Handle recursive input objects

Open obmarg opened this issue 2 years ago • 1 comments

This function infinitely recurses if it finds an input object that contains itself: https://github.com/obmarg/cynic/blob/master/cynic-querygen/src/query_parsing/inputs.rs#L181-L211

obmarg avatar Feb 24 '22 12:02 obmarg

I assume the fix for this is to be smarter about this set here - it could potentially be a HashMap or similar, with a lookup to avoid the recursion.

obmarg avatar Jul 24 '22 21:07 obmarg