Skip to content

feat: add support for optional tyoe usage in schema - #65

Merged
aaron-steinfeld merged 1 commit into
mainfrom
optional-types
May 25, 2021
Merged

aaron-steinfeld merged 1 commit into
mainfrom
optional-types

Conversation

@aaron-steinfeld

Copy link
Copy Markdown
Contributor

Description

Throughout the gql modules we avoid using null and instead use safer constructs like Optional and Maybe to handle presence. In the schema, nullability is handled through annotations, but within the code we would like to keep the objects consistent with the rest of the code. graphql-java-annotations already supports this, so here we bring our deserializer in line.

Testing

Manually verified with an optional type

@aaron-steinfeld
aaron-steinfeld requested a review from a team as a code owner May 25, 2021 18:19
@github-actions

This comment has been minimized.

@codecov

codecov Bot commented May 25, 2021

Copy link
Copy Markdown

Codecov Report

Merging #65 (ce93b15) into main (ed010c8) will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main      #65      +/-   ##
============================================
+ Coverage     59.50%   59.53%   +0.03%     
  Complexity      233      233              
============================================
  Files            79       79              
  Lines          1210     1211       +1     
  Branches         35       35              
============================================
+ Hits            720      721       +1     
  Misses          462      462              
  Partials         28       28              
Flag Coverage Δ
unit 59.53% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...l/deserialization/DefaultArgumentDeserializer.java 89.79% <100.00%> (+0.21%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ed010c8...ce93b15. Read the comment docs.

@aaron-steinfeld
aaron-steinfeld merged commit 87e678e into main May 25, 2021
@aaron-steinfeld
aaron-steinfeld deleted the optional-types branch May 25, 2021 18:41
@github-actions

Copy link
Copy Markdown

Unit Test Results

29 files  ±0  29 suites  ±0   29s ⏱️ +4s
99 tests ±0  99 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 87e678e. ± Comparison against base commit ed010c8.

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