Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 631 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 631 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).

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 some tests