Skip to main content

generate default graphene schema from sqlalchemy model base on [graphene-sqlalchemy](https://github.com/graphql-python/graphene-sqlalchemy.git)

Project description

generate default graphene schema from sqlalchemy model base on graphene-sqlalchemy

Installation

just run

pip install graphene_sqlalchemy_auto

How To Use

example :

from graphene_sqlalchemy_auto import QueryObjectType,MutationObjectType
from sqlalchemy.ext.declarative import declarative_base
import graphene

Base = declarative_base() 

class Query(QueryObjectType):
    class Meta:
        declarative_base = Base


class Mutation(MutationObjectType):
    class Meta:
        declarative_base = Base
        
        # include_object = [UserCreateMutation, UserUpdateMutation]


schema = graphene.Schema(query=Query, mutation=Mutation)

now you can use schema everywhere.some like flask,fastapi also more example you can find in example

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

graphene-sqlalchemy-auto-0.3.0.tar.gz (6.9 kB view hashes)

Uploaded Source

Built Distribution

graphene_sqlalchemy_auto-0.3.0-py3-none-any.whl (8.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page