-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Adding Strawberry support #44
Conversation
Codecov ReportBase: 93.14% // Head: 93.63% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #44 +/- ##
==========================================
+ Coverage 93.14% 93.63% +0.48%
==========================================
Files 48 54 +6
Lines 2321 2874 +553
==========================================
+ Hits 2162 2691 +529
- Misses 159 183 +24
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. |
example graphql config to use the news plugin with: projects:
default:
schema: https://countries.trevorblades.com/
extensions:
turms:
skip_forwards: true
out_dir: examples/countries-code/api
stylers:
- type: turms.stylers.capitalize.CapitalizeStyler
- type: turms.stylers.snake_case.SnakeCaseStyler
plugins:
- type: turms.plugins.strawberry.StrawberryPlugin # generates a strawberry schema
processors:
- type: turms.processors.disclaimer.DisclaimerProcessor
- type: turms.processors.black.BlackProcessor
- type: turms.processors.isort.IsortProcessor
- type: turms.processors.merge.MergeProcessor # merges the old with new schema
scalar_definitions:
uuid: str
_Any: typing.Any In this setting with the MergeProcessor you can easily add functionality to your generated file directly. Turms will only affect the fields and arguments of your queries and types, when the schema changes. |
adds query, subcsription and mutation as well as object type and interface creation for strawberry types
out of a gql schema