4 ms·
Similar benefits without codegen (based on decorator magic) for a python based stack: https://github.com/adsharma/fquery https://github.com/adsharma/fquery
by adsharma 5y ago
Similar benefits without codegen (based on decorator magic) for a python based stack:
https://github.com/adsharma/fquery https://github.com/adsharma/fquery
* Use dataclasses for both database schema and the user facing operations
* use decorators to generate django models
* use decorators to generate graphql operations (uses strawberry-graphql)
* Supports a method chaining query language, that can map to SQL
No code generation. Declarative mapping between database schema and web API schema possible, but not implemented.