You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/pages/learn/mutations.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ Like queries, mutation fields are added to one of the [root operation types](htt
41
41
42
42
Mutationfieldscanalsoacceptargumentsandyoumightnoticethatthe `review` argumenthasaninputtypesetto `ReviewInput`. Thisisknownas [InputObjecttype](/learn/schema/#input-object-types), which allows us to pass in a structured object containing information the mutation can use instead of individual scalar values only.
43
43
44
-
Alsojustlikequeries, if the mutation field returns an Object type, then you specify a selection set of its fields in the operation:
44
+
Aswithqueries, if the mutation field returns an Object type then you must specify a selection set of its fields in the operation:
45
45
46
46
```graphql
47
47
# { "graphiql": true, "variables": { "ep": "JEDI", "review": { "stars": 5, "commentary": "This is a great movie!" } } }
0 commit comments