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
14
14
15
15
.. code :: bash
16
16
17
- pip install graphene --upgrade
17
+ pip install " graphene>=1.0.dev "
18
18
19
19
Creating a basic Schema
20
20
-----------------------
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ plus the ones defined in ``UserFields``.
32
32
pass
33
33
34
34
35
- .. code :: graphql
35
+ .. code ::
36
36
37
37
type User {
38
38
name: String
Original file line number Diff line number Diff line change 44
44
45
45
The above types would have the following representation in a schema:
46
46
47
- .. code :: graphql
47
+ .. code ::
48
48
49
49
interface Character {
50
50
name: String
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ Executing the Mutation
53
53
54
54
Then, if we query (``schema.execute(query_str) ``) the following:
55
55
56
- .. code :: graphql
56
+ .. code ::
57
57
58
58
mutation myFirstMutation {
59
59
createPerson(name:"Peter") {
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ querying.
8
8
The basics:
9
9
10
10
- Each ObjectType is a Python class that inherits
11
- ``graphene.ObjectType `` or inherits an implemented ` Interface `_ .
11
+ ``graphene.ObjectType ``.
12
12
- Each attribute of the ObjectType represents a ``Field ``.
13
13
14
14
Quick example
36
36
The above ``Person `` ObjectType would have the following representation
37
37
in a schema:
38
38
39
- .. code :: graphql
39
+ .. code ::
40
40
41
41
type Person {
42
42
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).
62
62
63
63
So, you would need to query with:
64
64
65
- .. code :: graphql
65
+ .. code ::
66
66
67
67
{
68
68
lastName
You can’t perform that action at this time.
0 commit comments