File tree Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ Project setup
1414
1515.. code :: bash
1616
17- pip install graphene --upgrade
17+ pip install " graphene>=1.0.dev "
1818
1919 Creating a basic Schema
2020-----------------------
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ plus the ones defined in ``UserFields``.
3232 pass
3333
3434
35- .. code :: graphql
35+ .. code ::
3636
3737 type User {
3838 name: String
Original file line number Diff line number Diff line change 4444
4545The above types would have the following representation in a schema:
4646
47- .. code :: graphql
47+ .. code ::
4848
4949 interface Character {
5050 name: String
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ Executing the Mutation
5353
5454Then, if we query (``schema.execute(query_str) ``) the following:
5555
56- .. code :: graphql
56+ .. code ::
5757
5858 mutation myFirstMutation {
5959 createPerson(name:"Peter") {
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ querying.
88The basics:
99
1010- Each ObjectType is a Python class that inherits
11- ``graphene.ObjectType `` or inherits an implemented ` Interface `_ .
11+ ``graphene.ObjectType ``.
1212- Each attribute of the ObjectType represents a ``Field ``.
1313
1414Quick example
3636The above ``Person `` ObjectType would have the following representation
3737in a schema:
3838
39- .. code :: graphql
39+ .. code ::
4040
4141 type Person {
4242 firstName: String
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ would be converted to ``_other_Name`` (without any other transformation).
6262
6363So, you would need to query with:
6464
65- .. code :: graphql
65+ .. code ::
6666
6767 {
6868 lastName
You can’t perform that action at this time.
0 commit comments