Last active
April 14, 2017 03:38
-
-
Save SachaG/f79f7c32266ab1cb514fb879fa42f060 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
import { graphql } from 'react-apollo'; | |
import gql from 'graphql-tag'; | |
export default function withGetMetaDataMutation(component) { | |
return graphql(gql` | |
mutation getMetaData($url: String) { | |
getMetaData(url: $url) { | |
thumbnailUrl | |
viewCount | |
tweetCount | |
} | |
} | |
`)(component); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment