Updated main documentation mentioning SQLAlchemy support

This commit is contained in:
Syrus Akbary 2016-01-23 15:00:05 -08:00
parent 08a957abd0
commit 0f5277cbc6
2 changed files with 12 additions and 2 deletions

View File

@ -7,6 +7,7 @@
- **Relay:** Graphene has builtin support for Relay
- **Django:** Automatic *Django model* mapping to Graphene Types. Check a fully working [Django](http://github.com/graphql-python/swapi-graphene) implementation
Graphene also supports *SQLAlchemy*!
*What is supported in this Python version?* **Everything**: Interfaces, ObjectTypes, Scalars, Unions and Relay (Nodes, Connections), in addition to queries, mutations and subscriptions.
@ -18,8 +19,10 @@ For instaling graphene, just run this command in your shell
```bash
pip install graphene
# Or in case of need Django model support
# In case of need Django model support
pip install graphene[django]
# Or in case of need SQLAlchemy support
pip install graphene[sqlalchemy]
```
@ -59,6 +62,7 @@ If you want to learn even more, you can also check the following [examples](exam
* **Basic Schema**: [Starwars example](examples/starwars)
* **Relay Schema**: [Starwars Relay example](examples/starwars_relay)
* **Django model mapping**: [Starwars Django example](examples/starwars_django)
* **SQLAlchemy model mapping**: [Flask SQLAlchemy example](examples/flask_sqlalchemy)
## Contributing

View File

@ -12,6 +12,8 @@ building GraphQL schemas/types fast and easily.
`Django <http://github.com/graphql-python/swapi-graphene>`__
implementation
Graphene also supports *SQLAlchemy*!
*What is supported in this Python version?* **Everything**: Interfaces,
ObjectTypes, Scalars, Unions and Relay (Nodes, Connections), in addition
to queries, mutations and subscriptions.
@ -27,8 +29,10 @@ For instaling graphene, just run this command in your shell
.. code:: bash
pip install graphene
# Or in case of need Django model support
# In case of need Django model support
pip install graphene[django]
# Or in case of need SQLAlchemy support
pip install graphene[sqlalchemy]
Examples
--------
@ -70,6 +74,8 @@ If you want to learn even more, you can also check the following
example <examples/starwars_relay>`__
- **Django model mapping**: `Starwars Django
example <examples/starwars_django>`__
- **SQLAlchemy model mapping**: `Flask SQLAlchemy
example <examples/flask_sqlalchemy>`__
Contributing
------------