@@ -85,9 +85,9 @@ We should receive:
85
85
86
86
InputFields and InputObjectTypes
87
87
----------------------------------
88
- InputFields are used in mutations to allow nested input data for mutations
88
+ InputFields are used in mutations to allow nested input data for mutations.
89
89
90
- To use an InputField you define an InputObjectType that specifies the structure of your input data
90
+ To use an InputField you define an InputObjectType that specifies the structure of your input data:
91
91
92
92
93
93
.. code :: python
@@ -112,7 +112,7 @@ To use an InputField you define an InputObjectType that specifies the structure
112
112
return CreatePerson(person = person)
113
113
114
114
115
- Note that **name ** and **age ** are part of **person_data ** now
115
+ Note that **name ** and **age ** are part of **person_data ** now.
116
116
117
117
Using the above mutation your new query would look like this:
118
118
@@ -128,7 +128,7 @@ Using the above mutation your new query would look like this:
128
128
}
129
129
130
130
InputObjectTypes can also be fields of InputObjectTypes allowing you to have
131
- as complex of input data as you need
131
+ as complex of input data as you need:
132
132
133
133
.. code :: python
134
134
@@ -160,7 +160,7 @@ To return an existing ObjectType instead of a mutation-specific type, set the **
160
160
def mutate (root , info , name ):
161
161
return Person(name = name)
162
162
163
- Then, if we query (``schema.execute(query_str) ``) the following:
163
+ Then, if we query (``schema.execute(query_str) ``) with the following:
164
164
165
165
.. code ::
166
166
0 commit comments