Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 682 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 682 Bytes

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