Created
November 1, 2016 14:56
-
-
Save michalchudziak/8c8f81eb06da4ca0e5878146cce4677e to your computer and use it in GitHub Desktop.
This file contains 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
const ComponentWithSavePost = graphql(savePostMutation, { | |
props: ({ mutate }) => ({ | |
savePost: (title, body) => mutate({ variables: { title, body } }), | |
}), | |
})(Component); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment