Skip to content

Commit 5acd04a

Browse files
Update mutations.rst
1 parent 17f6a45 commit 5acd04a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/types/mutations.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ We should receive:
8585
8686
InputFields and InputObjectTypes
8787
----------------------------------
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.
8989

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:
9191

9292

9393
.. code:: python
@@ -112,7 +112,7 @@ To use an InputField you define an InputObjectType that specifies the structure
112112
return CreatePerson(person=person)
113113
114114
115-
Note that **name** and **age** are part of **person_data** now
115+
Note that **name** and **age** are part of **person_data** now.
116116

117117
Using the above mutation your new query would look like this:
118118

@@ -128,7 +128,7 @@ Using the above mutation your new query would look like this:
128128
}
129129
130130
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:
132132

133133
.. code:: python
134134
@@ -160,7 +160,7 @@ To return an existing ObjectType instead of a mutation-specific type, set the **
160160
def mutate(root, info, name):
161161
return Person(name=name)
162162
163-
Then, if we query (``schema.execute(query_str)``) the following:
163+
Then, if we query (``schema.execute(query_str)``) with the following:
164164

165165
.. code::
166166

0 commit comments

Comments
 (0)