strawberry icon indicating copy to clipboard operation
strawberry copied to clipboard

Introspection query result json as input for query codegen

Open fishi0x01 opened this issue 2 years ago • 0 comments

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.

fishi0x01 avatar Jun 01 '22 13:06 fishi0x01