Skip to content

colanconnon/graphene_sa_optimizer

Repository files navigation

Graphene Sql Alchemy Optmizer

(WIP) inspired by https://github.com/tfoxy/graphene-django-optimizer

Build Status

PyPI version

Uses graphql schema to generate efficient database access using sql alchemy joins

install

pip install graphene_sa_optimizer

How to use

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))

Setup for dev

  • Install pipenv
  • run pipenv install
  • run pipenv shell
  • run pytest

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published