Improved quickstart docs

This commit is contained in:
Syrus Akbary 2017-07-24 00:01:44 -07:00
parent dba6256578
commit 33a30db5f1

View File

@ -12,15 +12,15 @@ Lets build a basic GraphQL schema from scratch.
Requirements
------------
- Python (2.7, 3.2, 3.3, 3.4, 3.5, pypy)
- Graphene (1.0)
- Python (2.7, 3.4, 3.5, 3.6, pypy)
- Graphene (2.0)
Project setup
-------------
.. code:: bash
pip install "graphene>=1.0"
pip install "graphene>=2.0"
Creating a basic Schema
-----------------------
@ -37,7 +37,7 @@ one field: ``hello`` and an input name. And when we query it, it should return `
import graphene
class Query(graphene.ObjectType):
hello = graphene.String(name=graphene.Argument(graphene.String, default_value="stranger"))
hello = graphene.String(name=graphene.String(default_value="stranger"))
def resolve_hello(self, name):
return 'Hello ' + name