
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
@r26d/absinthe-apollo-upload-middleware
Advanced tools
A network interface for Apollo that enables file-uploading to Absinthe back ends reduced to just middleware to make it easier to work with.
Table of Contents generated with DocToc
A network interface for Apollo that enables file-uploading to Absinthe back ends reduced to just middleware to make it easier to work with.
I simplified this to just be the middleware. That allows you to use other middleware to handle the other issues related to the request.
import ApolloClient from 'apollo-client'
import { createHttpLink } from 'apollo-link-http'
import { createUploadMiddleware } from 'apollo-absinthe-upload-link'
import { ApolloLink } from 'apollo-link'
const client = new ApolloClient({
link: ApolloLink.from([
createUploadMiddleware,
createHttpLink({
uri: 'localhost:4000/graphqql',
credentials: 'include'
})
])
})
Substitute File with ReactNativeFile:
import { ReactNativeFile } from 'apollo-absinthe-upload-link'
const file = new ReactNativeFile({
uri: '…',
type: 'image/jpeg',
name: 'photo.jpg'
})
const files = ReactNativeFile.list([
{
uri: '…',
type: 'image/jpeg',
name: 'photo-1.jpg'
},
{
uri: '…',
type: 'image/jpeg',
name: 'photo-2.jpg'
}
])
MIT :copyright: r26D LLC
apollo-absinthe-upload-clientapollo-upload-clientA React Native FormData file object.
Type: Object
A React Native file.
file.urifile.typefile.nameCreates an array of file instances.
files Array<ReactNativeFileObject>const files = ReactNativeFile.list([{
uri: uriFromCameraRoll1,
type: 'image/jpeg',
name: 'photo-1.jpg'
}, {
uri: uriFromCameraRoll2,
type: 'image/jpeg',
name: 'photo-2.jpg'
}])
FAQs
A network interface for Apollo that enables file-uploading to Absinthe back ends reduced to just middleware to make it easier to work with.
We found that @r26d/absinthe-apollo-upload-middleware demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.