A terminating Apollo Link for Apollo Client that fetches a GraphQL multipart request if the GraphQL variables contain files (by default FileList, File, or Blob instances), or else fetches a regular GraphQL POST or GET request (depending on the config and GraphQL operation).
.mjs
until Apollo provides native ESM, fixing #72.Includes all the changes from:
apollo-link-http-common
API.apollo-link-http-common
for commonality with the official HTTP links:
package.json
author URL.Blob
types, via #58.extract-files
v3 replaces files extracted from properties with null
instead of deleting the property; see jaydenseric/extract-files#4. This improves compliance with the GraphQL multipart request spec. It’s not a breaking change for apollo-upload-server
, but it might be for other implementations.[email protected]
..babelrc.js
.package.json
engines
, matching the version supported by apollo-upload-server
.operationName
or variables
.lint-staged
for .mjs
.