Skip to content

Commit 1ef73b2

Browse files
Update mutations-updates.md (#4424)
Summary: The mutation variable is `doesLike`, not `doesViewerLike`, which is the name of the returned field. Pull Request resolved: #4424 Reviewed By: voideanvalue Differential Revision: D48790909 Pulled By: alunyov fbshipit-source-id: 016966cf9c942bc6d1f16d7b7d8dfae29dbf33f4
1 parent 27893cc commit 1ef73b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/docs/tutorial/mutations-updates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ function StoryLikeButton({story}) {
197197
commitMutation({
198198
variables: {
199199
id: data.id,
200-
doesViewerLike: !data.doesViewerLike,
200+
doesLike: !data.doesViewerLike,
201201
},
202202
})
203203
// end-change

0 commit comments

Comments
 (0)