apollo-absinthe-graphql-upload

1.0.3 • Public • Published

apollo-absinthe-graphql-upload

Enables file uploads in Apollo via GraphQL mutations for servers with graphql layer powered by Absinthe. Use with absinthe_plug.

Setup

Install with npm:

npm install apollo-absinthe-graphql-upload

Setup Apollo Client with this network interface:

import ApolloClient from 'apollo-client'
import { createNetworkInterface } from 'apollo-absinthe-graphql-upload'
 
const client = new ApolloClient({
  networkInterface: createNetworkInterface({
    uri: 'my.endpoint/graphql'
  })
})

Usage

Once setup, you will be able to use File instances anywhere within mutation or query input variables for your client interaction with Absinthe GraphQL servers.

Note: This is in a Work in Progress status. We're new to GraphQL world. This lib was not tested, and most likely not to work with FileList. Feel free to help.

References

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    5
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    5
  • 1.0.2
    1
  • 1.0.1
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i apollo-absinthe-graphql-upload

Weekly Downloads

8

Version

1.0.3

License

ISC

Last publish

Collaborators

  • gprimola