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 issues with the variable deserialization. #2326

Merged
merged 10 commits into from
Sep 16, 2020

Conversation

michaelstaib
Copy link
Member

@michaelstaib michaelstaib commented Sep 16, 2020

For a while, we had some issues with deserializing variables. The main issue was that the variables were fully deserialized in the middleware before we actually knew what types they could be. We now use our GraphQL syntax tree deserialize the variables into which now preserves the context of the values and does not force the parser to decide on a specific runtime type.

We still should have another look at this in version 12 and see if we can make the whole parser/request parser more efficient by reworking the syntax tree to handle value memory differently.

Fixes #1978

@michaelstaib michaelstaib self-assigned this Sep 16, 2020
@michaelstaib michaelstaib added 🐛 bug Something isn't working 🌶 hot chocolate labels Sep 16, 2020
@michaelstaib michaelstaib added this to the HC-11.0.0 milestone Sep 16, 2020
Copy link
Member

@rstaib rstaib left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few comments

@sonarcloud
Copy link

sonarcloud bot commented Sep 16, 2020

SonarCloud Quality Gate failed.

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 1 Code Smell

69.9% 69.9% Coverage
4.2% 4.2% Duplication

@michaelstaib michaelstaib merged commit fe4e043 into develop Sep 16, 2020
@michaelstaib michaelstaib deleted the mst/variable-coercion branch September 16, 2020 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

very large numbers not supported by Float input types
2 participants