Created
November 16, 2018 14:54
-
-
Save fdjones/9503226843f488f35805c3b895747de3 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 gql from 'graphql-tag'; | |
import { withApollo, Query, Mutation } from 'react-apollo'; | |
<Fragment> | |
<Query>{... stuff here}</Query> | |
<Mutation mutation={gql`${deleteFile}`} variables={{ name, path }} > // [eslint] Unexpected use of 'name'. [no-restricted-globals] | |
{postMutation => <button onClick={postMutation}>Submit</button>} | |
</Mutation> | |
</Fragment> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment