diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 5e037ca2..5dfae32f 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -14,7 +14,7 @@ Project setup .. code:: bash - pip install graphene --upgrade + pip install "graphene>=1.0.dev" Creating a basic Schema ----------------------- diff --git a/docs/types/abstracttypes.rst b/docs/types/abstracttypes.rst index cd6b1ece..5e85a804 100644 --- a/docs/types/abstracttypes.rst +++ b/docs/types/abstracttypes.rst @@ -32,7 +32,7 @@ plus the ones defined in ``UserFields``. pass -.. code:: graphql +.. code:: type User { name: String diff --git a/docs/types/interfaces.rst b/docs/types/interfaces.rst index c92cd28f..ee0410a7 100644 --- a/docs/types/interfaces.rst +++ b/docs/types/interfaces.rst @@ -44,7 +44,7 @@ time. The above types would have the following representation in a schema: -.. code:: graphql +.. code:: interface Character { name: String diff --git a/docs/types/mutations.rst b/docs/types/mutations.rst index cb2d780b..3f39658a 100644 --- a/docs/types/mutations.rst +++ b/docs/types/mutations.rst @@ -53,7 +53,7 @@ Executing the Mutation Then, if we query (``schema.execute(query_str)``) the following: -.. code:: graphql +.. code:: mutation myFirstMutation { createPerson(name:"Peter") { diff --git a/docs/types/objecttypes.rst b/docs/types/objecttypes.rst index 9d2c44cc..ab1ea489 100644 --- a/docs/types/objecttypes.rst +++ b/docs/types/objecttypes.rst @@ -8,7 +8,7 @@ querying. The basics: - Each ObjectType is a Python class that inherits - ``graphene.ObjectType`` or inherits an implemented `Interface`_. + ``graphene.ObjectType``. - Each attribute of the ObjectType represents a ``Field``. Quick example @@ -36,7 +36,7 @@ Field. The above ``Person`` ObjectType would have the following representation in a schema: -.. code:: graphql +.. code:: type Person { firstName: String diff --git a/docs/types/schema.rst b/docs/types/schema.rst index a35909bf..7c7ad73d 100644 --- a/docs/types/schema.rst +++ b/docs/types/schema.rst @@ -62,7 +62,7 @@ would be converted to ``_other_Name`` (without any other transformation). So, you would need to query with: -.. code:: graphql +.. code:: { lastName