Questions tagged [apollo-upload-client]

7 questions
2
votes
1 answer

How to upload a file through Apollo Server v4 and graphql-upload?

im using Apollo server v4 with expressjs and NEXTJS for my Frontend. What I want is to create a Mutation like uploadFile using upload-graphql to upload a file to my Backend Server. upload type export interface Upload { filename: string; …
0
votes
0 answers

I'm trying to upload images via apollo client to keystone js and its have some errors

all necessary package installed. for backend I use Keystone js 3.79 for frontend GQL I use apollo client and for upload images I use apollo client upload. here is necessary information about my problome. CreateProduct.jsx import { useMutation } from…
0
votes
2 answers

Upload file with apollo-upload-client and graphql-yoga 3.x

In the 3.x versions of graphql-yoga fileuploads use the scalar type File for queries, but apollo-upload-client uses Upload, so how can I make it work with those frameworks?
Martin Cup
  • 2,399
  • 1
  • 21
  • 32
0
votes
0 answers

How can I upload multiple files in a loop using Apollo-upload-client?

I can upload a single file using apollo-upload-client but not inside a loop. It actually sends a file and response back as base64 binary, which takes 10 seconds but it uploads all files instantly without any response. selectedFilesArray.map(async…
0
votes
0 answers

Module not found: Can't resolve 'apollo-upload-client'

I'm on Next.js and can't resolve this issue. I don't find any opened issue in their GitHub. { "dependencies": { "@apollo/client": "^3.7.1", "@types/apollo-upload-client": "^17.0.2", "@types/node": "18.11.9", "@types/react":…
FaruQ
  • 3
  • 1
  • 2
0
votes
1 answer

Should I create a separate file upload server besides main graphql server?

I'm creating a mobile application with React Native which is going to heavily depend on file uploading in form of images and videos. Currently my GraphQL server is handling all the database interaction and I now want to add the functionality to…
JonasLevin
  • 1,592
  • 1
  • 20
  • 50
0
votes
1 answer

Uploading a "LOCAL" file from nodejs to rails graphql backend (server to server)

This is not about "client to server" upload. I am looking for a way to upload a file from nodejs server to rails backend graphql server (server to server). The rails backend is working fine, and it can take file uploads without a problem if it was…
kukrt
  • 2,117
  • 3
  • 21
  • 32