Skip to content

Instantly share code, notes, and snippets.

@fdjones
Created November 16, 2018 14:54
Show Gist options
  • Save fdjones/9503226843f488f35805c3b895747de3 to your computer and use it in GitHub Desktop.
Save fdjones/9503226843f488f35805c3b895747de3 to your computer and use it in GitHub Desktop.
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