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

Union support #49

Merged
merged 2 commits into from
Feb 24, 2023
Merged

Union support #49

merged 2 commits into from
Feb 24, 2023

Conversation

jhnnsrs
Copy link
Owner

@jhnnsrs jhnnsrs commented Feb 24, 2023

No description provided.

@codecov
Copy link

codecov bot commented Feb 24, 2023

Codecov Report

Base: 93.83% // Head: 93.88% // Increases project coverage by +0.04% 🎉

Coverage data is based on head (dd56105) compared to base (a67e684).
Patch coverage: 92.10% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #49      +/-   ##
==========================================
+ Coverage   93.83%   93.88%   +0.04%     
==========================================
  Files          54       56       +2     
  Lines        2920     3058     +138     
==========================================
+ Hits         2740     2871     +131     
- Misses        180      187       +7     
Impacted Files Coverage Δ
turms/plugins/strawberry.py 93.03% <ø> (+0.32%) ⬆️
turms/utils.py 74.34% <72.72%> (-0.30%) ⬇️
turms/recurse.py 87.95% <81.25%> (-1.68%) ⬇️
tests/test_config.py 100.00% <100.00%> (ø)
tests/test_schema_strawberry.py 100.00% <100.00%> (ø)
tests/test_unions.py 100.00% <100.00%> (ø)
tests/utils.py 100.00% <100.00%> (ø)
turms/config.py 99.33% <100.00%> (+0.90%) ⬆️
turms/plugins/fragments.py 97.02% <100.00%> (ø)
turms/plugins/funcs.py 99.53% <100.00%> (+1.37%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@jhnnsrs
Copy link
Owner Author

jhnnsrs commented Feb 24, 2023

  • Adds union support for both schema and document generation.
  • Also adds support for model options parameters like
    • populate_by_field_name
    • orm_mode
    • allow_mutation
    • extra ("forbid","allow")

@jhnnsrs jhnnsrs merged commit 5b78fa2 into master Feb 24, 2023
@jhnnsrs jhnnsrs deleted the union-support branch February 24, 2023 17:03
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.

1 participant