mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-28 20:43:57 +03:00
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:
parent
49fcf9f2e6
commit
7a1e9d7798
|
@ -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')
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user