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

should resolve with a nested lonely data source (TT-9884) #429

Merged
merged 1 commit into from
May 14, 2024

Conversation

pvormste
Copy link

@pvormste pvormste commented May 13, 2024

This PR fixes an issue when a nested data source is lonely.

It is built on top of @buraksezer 's research.

How does it work?

The GraphQL data source planner has been slightly modified and will before printing the upstream query check for fields that require selections.

Example:

{ countries }

During this check, it will realize that countries is missing the selections and will therefore add the __typename selection field. This will result in following upstream query:

{ countries { __typename } }

With that the upstream is valid again.

Copy link

sonarcloud bot commented May 13, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@pvormste pvormste merged commit f9fa4a1 into master May 14, 2024
6 checks passed
@pvormste pvormste deleted the fix/TT-9884/resolve-with-lonely-nested-data-source branch May 14, 2024 11:01
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.

None yet

2 participants