(WIP) inspired by https://github.com/tfoxy/graphene-django-optimizer
Uses graphql schema to generate efficient database access using sql alchemy joins
pip install graphene_sa_optimizer
from graphene_sa_optimizer import get_optimized_options
# This will generate all our options
# to optimize this query and
# pass those optimizations into our query
query.options(*get_optimized_options(ModelClass, info))
- Install
pipenv
- run
pipenv install
- run
pipenv shell
- run
pytest