strawberry
strawberry copied to clipboard
Introspection query result json as input for query codegen
Feature Request Type
- [ ] Core functionality
- [x] Alteration (enhancement/optimization) of existing feature(s)
- [ ] New behavior
Description
My understanding is that the code generation feature to generate query classes relies on the schema to be written with strawberry's code-first approach. Other code generators (e.g., sgqlc) rely on the result of an introspection query, making them agnostic of the framework used to implement the gql server.
It would be amazing to be able to use the code generation feature without the requirement to implement the schema backend with strawberry, by relying on introspection query results.
I initially opened a discussion about this here, but there was no response yet.