4
4
:description: This page describes how to update nodes through mutations.
5
5
6
6
7
- Using these type definitions:
7
+ Consider the following type definitions:
8
8
9
9
[source, graphql, indent=0]
10
10
----
@@ -21,7 +21,7 @@ type User {
21
21
}
22
22
----
23
23
24
- These `update` mutations and response types should be generated:
24
+ These `update` mutations and response types are generated:
25
25
26
26
[source, graphql, indent=0]
27
27
----
@@ -60,7 +60,7 @@ The `id` field cannot be updated as the xref::/directives/autogeneration.adoc#ty
60
60
61
61
== Single `update`
62
62
63
- The content of a `Post` can be updated by executing the following GraphQL statement:
63
+ You can update the content of a `Post` by executing the following GraphQL statement:
64
64
65
65
[source, graphql, indent=0]
66
66
----
@@ -80,7 +80,7 @@ mutation {
80
80
}
81
81
----
82
82
83
- This should update the post by adding the sentence "Some new content for this Post!".
83
+ This updates the post by adding the sentence "Some new content for this Post!".
84
84
85
85
== Nested `create` using `update`
86
86
@@ -131,7 +131,7 @@ mutation {
131
131
}
132
132
----
133
133
134
- For `update` operations, `connectOrCreate` can also be used as a top-level input for an equivalent operation:
134
+ For `update` operations, you can also use `connectOrCreate` as a top-level input for an equivalent operation:
135
135
136
136
[source, graphql, indent=0]
137
137
----
0 commit comments