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).
Any help is appreciated!
import ApolloClient from 'apollo-client'
import createNetworkInterface from 'apollo-upload-network-interface'
const networkInterface = createNetworkInterface({
uri: '/graphql',
})
const client = new ApolloClient({
networkInterface
})
- Add tests
- Convert to typescript