Created
August 13, 2018 06:53
-
-
Save ecthiender/dea2ce20f51aba01e70117df2b1c2634 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mutation update_likes { | |
| update_article( | |
| where: {id: {_eq: 1}}, | |
| _inc: {likes: 1} | |
| ) { | |
| affected_rows | |
| returning { | |
| id | |
| likes | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment