UploadNetworkInterface for Apollo GraphQL Client. Adds support for multipart/form-data
requests.
Used together with graphql-server-express-upload and graphql-server-koa-upload (coming soon).
import ApolloClient from 'apollo-client'
import createNetworkInterface from 'apollo-upload-network-interface'
const networkInterface = createNetworkInterface({
uri: '/graphql',
})
const client = new ApolloClient({
networkInterface
})
- Add some tests