added graphene import to READMEs

it's nice to just be able to copy/paste the entire example without
having to remember the import
This commit is contained in:
kimbo 2020-04-13 20:54:15 -06:00
parent 49fcf9f2e6
commit f97c7a001e
2 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,8 @@ pip install "graphene>=2.0"
Here is one example for you to get started:
```python
import graphene
class Query(graphene.ObjectType):
hello = graphene.String(description='A typical hello world')

View File

@ -67,6 +67,8 @@ Here is one example for you to get started:
.. code:: python
import graphene
class Query(graphene.ObjectType):
hello = graphene.String(description='A typical hello world')