import gql from 'graphql-tag' import { graphql, compose } from 'react-apollo' const PostTree = gql` mutation PostTree($createTreeForm: CreateTreeFormInput! , $owner: String, $repo: String) { postTree(createTreeForm: $createTreeForm, owner: $owner, repo: $repo) { sha url tree_result { sha url truncated tree { path mode type size sha url } } } }` const withAppSyncTree = compose( ) export { PostTree, withAppSyncTree }