apollo-upload-network-interface
v1.0.4
Published
UploadNetworkInterface for Apollo GraphQL Client
Maintainers
Readme
apollo-upload-network-interface
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!
Usage
import ApolloClient from 'apollo-client'
import createNetworkInterface from 'apollo-upload-network-interface'
const networkInterface = createNetworkInterface({
uri: '/graphql',
})
const client = new ApolloClient({
networkInterface
})TODO
- [ ] Add tests
- [ ] Convert to typescript
