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

Introduce InputType for optional values with undefined state #658

Merged
merged 1 commit into from
Sep 17, 2017

Conversation

sav007
Copy link
Contributor

@sav007 sav007 commented Sep 14, 2017

Introduce wrapper class InputType for optional values that can be in 3 states: some value, null and undefined.
Update generation of input object types to utilize new InputType wrapper and don't serialize optional value if it's undefined.

Example of new version of generated input type: https://github.com/apollographql/apollo-android/pull/658/files#diff-3e61595a5be610256c7f274f6f95d5f5

Closes #652

Introduce wrapper class InputType for optional values that can be in 3 states: some value, null and undefined.
Update generation of input object types to utilize new InputType wrapper and don't serialize optional value if it's undefined.

Closes apollographql#652
@sav007 sav007 merged commit afb90d8 into apollographql:master Sep 17, 2017
@sav007 sav007 deleted the feature-652/input-type branch September 17, 2017 03:02
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