{"repo":"jaydenseric/apollo-upload-client","free":true,"listed":false,"github":"https://github.com/jaydenseric/apollo-upload-client","clone":"git clone https://github.com/jaydenseric/apollo-upload-client.git","description":"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).","language":"JavaScript","stars":1542,"topics":["apollo","graphql","apollo-client","react","react-native","maintained","npm","node"],"license":null,"category":"mobile-apps","readme_excerpt":"apollo-upload-client 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). - Installation - Examples - Requirements - Exports Installation To install with npm, run: Polyfill any required globals (see Requirements ) that are missing in your server and client environments. Apollo Client can only have 1 terminating Apollo Link that sends the GraphQL requests; if one such as HttpLink is already setup, remove it. Construct ApolloClient with a terminating Apollo Link using the class UploadHttpLink . For client awareness features, compose the Apollo Link ClientAwarenessLink before the terminating link. Also ensure the GraphQL server implements the GraphQL multipart request spec and that uploads are handled correctly in resolvers. Examples Use FileList , File , or Blob instances anywhere within query or mutation variables to send a GraphQL multipart request. See also the example API and client. FileList File Blob To avoid the upload default file name blob , replace the Blob approach with File : Requirements - Node.js versions ^22.13.0 ^24.0.0 =26.0.0 . - Browsers matching the Browserslist query 0.5%, not OperaMini all, not dead . Projects must configure TypeScript to use types from the ECMAScript modules that have a // @ts-check comment: - compilerOptions.allowJs s","default_branch":null,"files":null,"tree":[],"storefront":"/r/jaydenseric","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jaydenseric/apollo-upload-client/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}