4 ms·
It is! And it's a fun way to program imo. I'm working on a project now, the api is graphql using Graphene in Python (flask-graphql with graphiql support), so
by mattbillenstein 8y ago
It is! And it's a fun way to program imo.
I'm working on a project now, the api is graphql using Graphene in Python (flask-graphql with graphiql support), so we basically define the models using that. The graphene resolvers talk to a package called "services" which is where all the business logic and queries live, and services talks to another package "db" which deals with taking sql+params and returning dict rows.
It is exceedingly simple, easy to debug, and we're using postgres, so if you have a sensible schema, postgres can do just about anything you want to do very easily. We're using postgis, and postgres search features under the hood.
- thymanl23 8y agoWow, that sounds like a really neat approach!!