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

Fixed an issue where GQL definition of having Union self refs past depth limit was failing with RangeError. #57

Merged
merged 3 commits into from
Apr 5, 2024

Conversation

VShingala
Copy link
Member

Overview

This PR fixes issue where definitions having UnionType self-referencing itself past depth limit were not converted correctly. Such conversion was failing with following RangeError.

Could not generate collection. Error Message:Maximum call stack size exceeded

Fix

We'll be making sure that any self referencing union types past provided depth limit will be resolved correctly with correct comment mentioning the reason like below.

# self reference detected
# skipping "createdBy"

@VShingala VShingala requested a review from webholik April 5, 2024 05:02
@VShingala VShingala merged commit 4ec470f into develop Apr 5, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants