Skip to content

A JavaScript client to be used with Apollo and Absinthe GraphQL for file uploads.

Notifications You must be signed in to change notification settings

yubeio/apollo-absinthe-graphql-upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A JavaScript client to be used with Apollo and Absinthe GraphQL for file uploads.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published