推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
Chyroc
V2EX  ›  Python

python 下 graphql 之 graphene 的 mutation 搜索求助!万分感谢

  •  1
     
  •   Chyroc · Nov 29, 2016 · 1882 views
    This topic created in 3452 days ago, the information mentioned may be changed or developed.

    1 、我使用了 sqlalchemy 连接了我的 mysql 数据库

    2 、定义了people

        class People(Base):
            __tablename__ = 'people'
            id = Column(BigInteger, primary_key=True)
            name = Column(String(128))
            birthplace = Column(String(128))
    

    3 、定义

        class Person(graphene_sqlalchemy.SQLAlchemyObjectType):
            class Meta:
            model = PersonModel
    

    4 、我想要可以搜索 people 里面的 name ,请问怎么写??

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1142 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 18:12 · PVG 02:12 · LAX 11:12 · JFK 14:12
    ♥ Do have faith in what you're doing.