added graphene import to READMEs (#1183)

it's nice to just be able to copy/paste the entire example without
having to remember the import
This commit is contained in:
Kimball Leavitt 2020-04-14 03:25:10 -06:00 committed by GitHub
parent 49fcf9f2e6
commit 7a1e9d7798
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: Here is one example for you to get started:
```python ```python
import graphene
class Query(graphene.ObjectType): class Query(graphene.ObjectType):
hello = graphene.String(description='A typical hello world') 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 .. code:: python
import graphene
class Query(graphene.ObjectType): class Query(graphene.ObjectType):
hello = graphene.String(description='A typical hello world') hello = graphene.String(description='A typical hello world')