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 - **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 - **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. *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 ```bash
pip install graphene pip install graphene
# Or in case of need Django model support # In case of need Django model support
pip install graphene[django] 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) * **Basic Schema**: [Starwars example](examples/starwars)
* **Relay Schema**: [Starwars Relay example](examples/starwars_relay) * **Relay Schema**: [Starwars Relay example](examples/starwars_relay)
* **Django model mapping**: [Starwars Django example](examples/starwars_django) * **Django model mapping**: [Starwars Django example](examples/starwars_django)
* **SQLAlchemy model mapping**: [Flask SQLAlchemy example](examples/flask_sqlalchemy)
## Contributing ## Contributing

View File

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