graphene-sqlalchemy icon indicating copy to clipboard operation
graphene-sqlalchemy copied to clipboard

Added a new example using Falcon and graphene-sqlalchemy

Open somada141 opened this issue 7 years ago • 6 comments

Some time ago I put together an example utilising Falcon and graphene-sqlalchemy. It can be found under https://github.com/somada141/demo-graphql-sqlalchemy-falcon.

The example demonstrates setting up the SQLAlchemy ORM schema, representing it in GraphQL through graphene-sqlalchemy, and performing queries and mutations.

It also demonstrates how to use the GraphQL AST to limit the SQLAlchemy queries to only the fields requested in the GraphQL query.

somada141 avatar Oct 03 '18 01:10 somada141

Just realised the build fails cause its trying to run the tests out of my example, will fix

somada141 avatar Oct 03 '18 01:10 somada141

Coverage Status

Coverage remained the same at 91.854% when pulling f850b81ee254554cedb7c11812e973978624761e on somada141:feature/falcon-example into 33d5b746719a4a0fb19d00337b1ed87fe40802a9 on graphql-python:master.

coveralls avatar Oct 03 '18 01:10 coveralls

Coverage Status

Coverage remained the same at 91.854% when pulling f850b81ee254554cedb7c11812e973978624761e on somada141:feature/falcon-example into 33d5b746719a4a0fb19d00337b1ed87fe40802a9 on graphql-python:master.

coveralls avatar Oct 03 '18 01:10 coveralls

Coverage Status

Coverage remained the same at 91.854% when pulling f850b81ee254554cedb7c11812e973978624761e on somada141:feature/falcon-example into 33d5b746719a4a0fb19d00337b1ed87fe40802a9 on graphql-python:master.

coveralls avatar Oct 03 '18 01:10 coveralls

Coverage Status

Coverage remained the same at 91.854% when pulling f850b81ee254554cedb7c11812e973978624761e on somada141:feature/falcon-example into 33d5b746719a4a0fb19d00337b1ed87fe40802a9 on graphql-python:master.

coveralls avatar Oct 03 '18 01:10 coveralls

Thanks to share ! It's an interesting use case.

FabriceSalvaire avatar Mar 08 '19 15:03 FabriceSalvaire