Skip to content

Commit

Permalink
Update mutations-updates.md (#4424)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
michaelmcneilnet authored and facebook-github-bot committed Aug 30, 2023
1 parent 27893cc commit 1ef73b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/tutorial/mutations-updates.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ function StoryLikeButton({story}) {
commitMutation({
variables: {
id: data.id,
doesViewerLike: !data.doesViewerLike,
doesLike: !data.doesViewerLike,
},
})
// end-change
Expand Down

0 comments on commit 1ef73b2

Please sign in to comment.